Cypher init script
Apoc optionally allows you to run a cypher command after database initialization is finished. This can e.g. be used to ensure indexes/constraints are created up front.
To use this feature use a config option:
For running multiple statements you can also add suffixes to the config options, like
The statements will then be executed in sort-order.
apoc.initializer.cypher.1=CALL apoc.cypher.runSchemaFile("file:///indexes.cypher") apoc.initializer.cypher.2=CALL apoc.cypher.runFile("file:///setupProcedures.cypher")
Was this page helpful?