0
$\begingroup$

Is there a way or tools available to generate or retrieve cypher query from a Neo4j database ? Should we need to store cypher quries along with the graph data for regeneration ?

$\endgroup$
1
$\begingroup$

This has already been answered in stackoverflow. There is no need to save the queries you used to populate the database, you only need to dump the contents of the database to a file:

db1/neo4j-shell -path db1/data/graph.db/ -c dump > export_data.cypher

In order to load the database dump into another database, you just supply it to neo4j shell through the standard intput:

db2/bin/neo4j-shell -path db2/data/graph.db/ < export_data.cypher
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.