Search code examples
neo4jcypher

How to copy a node by using Cypher?


I want to copy a node by using cypher. Now I can get all properties by properties() function in cypher, what is the next step? Do I have to using the driver like py2neo to write them in python. Dose Cypher has some function like copy() to copy the node directly?


Solution

  • Here is the simplest answer:

    match (old:Mynode) create (new:Mynode) set new = old