Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MATCH (n:Country)
- WITH n.name AS inputID, collect(n) AS nodes
- WHERE size(nodes) > 1
- FOREACH (n in tail(nodes) | DETACH DELETE n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement