Search code examples
memgraphdb

How to export Memgraph graph as a series of Cypher statements, so I can use it to import the data to another instance or Neo4j?


I have a Memgraph database running.

How to export Memgraph graph as a series of Cypher statements, so I can use it to import to another instance?

I was reading the documentation and only found how to Import Cypher, but not how to Export Cypher.

I would like a way to import/export as a text file containing the Cypher statements that I can use to transfer data into Neo4j/Memgraph server instances.


Solution

  • You can export your graph by using Memgraph Lab. If using the memgraph/memgraph-platform Docker image, you should be able to access Memgraph Lab locally in your browser at http://localhost:3000/ .

    While on the Overview tab, search for the option Export database in the upper right corner.

    Screenshot

    It will download the graph.cypherl file