jexp / neo4j-shell-tools

A bunch of import/export tools for the neo4j-shell
289 stars 55 forks source link

Export schema of the graph database only #71

Open rhamedy opened 8 years ago

rhamedy commented 8 years ago

It would be great if one could export the structure of the graph in other words export schema only. This is useful, specially for development purposes in projects where the graph keeps evolving during development.

For example in arangoDB one can do the following to backup the structure only (using dump-data-false or export-schema-only flags would be useful)

arangoDB - arangodump --dump-data false --include-system-collections true --output-directory "dump"

Thanks.

jexp commented 8 years ago

Good point, do you think that should be an extra command? like export-schema or should it be tied to a cypher statement and only the schema for that statement would be exported?

rhamedy commented 8 years ago

An extra command to allow the schema for the entire graph to be exported would definitely be a privilege and that will leave the door open for future developments in case there is a need to add additional flags/arguments to the command to allow subsets of the graph schema to be exported.