I am feeding my neo4j db manually using cypher, so prone to error like creating duplicate nodes:
The duplicate nodes will have each relationships to other nodes. Is there a built-in function to merge these nodes? Or should I do it manually?
Sounds possible, but complicated with cypher script:
- Get the relationships of each duplicate node
- Recreate them (with their properties) with the correct node (given node id)
- Remove relationships to the duplicate nodes
- and finally remove the duplicate nodes.