QuickStart Writing and reading data
Writing and reading graph data.
About this task
Writing data from DataStax Graph to a file is most easily accomplished with the g.io()
command.
Procedure
-
Write your data to an output file to save or exchange information using the GraphSON format, a variation of JSON:
g.io("/tmp/food_qs.json").write()
g.io()
is disabled in sandbox mode.In Studio:
-
Read your data from an output file to exchange information using the GraphSON format:
g.io("/tmp/food_qs.json").read()
In Studio: