... or is it possible at all to create a node in Neo4j which has a relationship with itself (a simple loop-node)?
If so, what would be the corresponding Cypher query?
The following query creates Peter who voted for himself.
MERGE (peter:User { name: "Peter" })
MERGE (peter)<-[:VOTED_FOR]-(peter)
RETURN peter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With