Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy a node by using Cypher?

Tags:

neo4j

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?

like image 400
xiaotong xu Avatar asked Jun 07 '26 02:06

xiaotong xu


1 Answers

Here is the simplest answer:

match (old:Mynode) create (new:Mynode) set new = old
like image 109
Muldec Avatar answered Jun 08 '26 15:06

Muldec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!