neo4j script file format - is there any?

ducin picture ducin · Mar 1, 2013 · Viewed 11.2k times · Source

I would like to predefine some graph data for neo4j and be able to load it, maybe via a console tool. I'd like it to be precisely the same as MySQL CLI and .sql files. Does anyone know if there exists a file format like .neo or .neo4j? I couldn't find such thing in the docs...

Answer

Eve Freeman picture Eve Freeman · Mar 1, 2013

We usually do .cql or .cypher for script files. You can pipe it to the shell to run it, like so:

./neo4j-shell -c < MY_FILE.cypher

Michael Hunger was doing some great work on this feature, also, just recently. He got performance up and noise down from the console. I hope it gets into 1.9 release.