Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Exporting current DB to JSON - Apache TinkerPop
AT
Apache TinkerPop
•
3y ago
•
6 replies
Shush
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
:
graph.io(graphson()).writeGraph("data/defaultDB.json");
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
?
Apache TinkerPop
Join
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Cosmo db
AT
Apache TinkerPop / questions
3y ago
Connection to Azure cosmos db using Go
AT
Apache TinkerPop / questions
3y ago
Integration tests for AWS Neptune DB
AT
Apache TinkerPop / questions
3y ago
How can I use the .io("filename.json").write() pattern to append to an existing graphson file?
AT
Apache TinkerPop / questions
3y ago