How to rename a node in a graph in neo4j without tempering the relationships of that node. Also how to delete a relationship between two nodes. please assist me with the cypher syntax.
1 Answers
0
votes
You can find many tips in the official documentation
MATCH (n { name: 'Andres' })-[r:KNOWS]->()
DELETE r
MATCH (n { name: 'Stefan' })
SET n:German
RETURN n.name, labels(n) AS labels
MATCH (n { name: 'Peter' })
REMOVE n:German
RETURN n.name, labels(n)
rename a node
? What have tried so for ? – logisima