Running cypher scripts?

A newbie question that I have searched everywhere for a solution and I can't figure it out...

I'm trying to bulk load my constraints by running a cypher script using the following APOC procedure that should be available according to the neo4j APOC documentation...

apoc.cypher.runFile

However, when I use neo4j browser to try and CALL this procedure I get an error stating this procedure does not exist.

What am I missing???

That procedure is in the extended or full version depending version 4 or 5.

Look under the assists for the version you want download the Guillain or extended versions. Move the downloaded jar to yourcdb’s plugins folder and restart.

@zakias9004

or why not simply pass said file into bin/cypher-shell and as described at

and

Example 4. Running Cypher statements from a file as a cypher-shell argument.
You can pass a file containing Cypher statements as an argument when running cypher-shell.

The examples here use the --format plain flag for a simple output.

Using cat (UNIX)

    cat example.cypher | bin/cypher-shell -u neo4j -p <password> --format plain

Using type (Windows)

    type example.cypher | bin/cypher-shell.bat -u neo4j -p <password> --format plain
1 Like