Exporting current DB to JSON
Hey,
We want to export the current DB to a JSON file. This is used for small scale copy of the DB that includes a small number of users that can be used for unit tests.
This does not use any product (e.g. Neptune) but just plain Tinkerpop server/client.
I used to export it using Graphson:
However, since there are some vertices that are too big (and by that I mean that they have a lot of edges), longer lines are trimmed with a
Is there a better way to do it for small-medium sized DBs with complicated vertices and edges?
We want to export the current DB to a JSON file. This is used for small scale copy of the DB that includes a small number of users that can be used for unit tests.
This does not use any product (e.g. Neptune) but just plain Tinkerpop server/client.
I used to export it using Graphson:
graph.io(graphson()).writeGraph("data/defaultDB.json");However, since there are some vertices that are too big (and by that I mean that they have a lot of edges), longer lines are trimmed with a
.. at the end, essentially breaking the JSON file. Even if you fix the formatting, there is still omitted information.Is there a better way to do it for small-medium sized DBs with complicated vertices and edges?