0
votes

Is their any way to obtain/generate Cypher queries for creating all nodes and relationships in the future, say on another machine, on completely new installation of Neo4j (in the same way that in examples there is set of Cypher queries given for creating Movie graph).

2

2 Answers

1
votes

The neo4j-shell has a dump command that can output the complete Cypher dump. I'm not sure how well it performs with large graphs.

neo4j-shell -c dump > backup.txt
0
votes

Depending on what you are trying to achieve, GraphGists might be of interest as a way to publicly document and share Cypher queries. You can use @MartinPreusse's suggestion as a way to generate the Cypher queries.