GRAPH.COPY <src> <dest>
The GRAPH.COPY command creates a copy of a graph, while the copy is performed the src graph is fully accessible.
Example:
Frequently Asked Questions
Can I still query the source graph while GRAPH.COPY is running?
Can I still query the source graph while GRAPH.COPY is running?
Yes. The source graph remains fully accessible for both reads and writes during the copy operation.
Does GRAPH.COPY also copy indexes and constraints?
Does GRAPH.COPY also copy indexes and constraints?
Yes.
GRAPH.COPY creates a complete clone of the source graph including all nodes, relationships, properties, indexes, and constraints.What happens if the destination graph already exists?
What happens if the destination graph already exists?
The command will return an error. You must delete the destination graph first using
GRAPH.DELETE before copying to that key name.Is GRAPH.COPY atomic?
Is GRAPH.COPY atomic?
The copy reflects a consistent snapshot of the source graph at the time the command begins. Modifications to the source graph during the copy will not affect the destination.