Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-16-2021 04:55 PM
Hi All,
I want to merge nodes with different labels but are connected by a relationship and also share the same property value e.g.
(A)-[:SHARES_NAME]->(B)
and I want to merge all B nodes onto A and move all properties and relationships.
Is there any easy way to achieve this?
Thanks
Stuart
02-16-2021 06:48 PM
The examples in here talks about merging nodes with the same label. If I try and manipulate the example it throws a IndexEntryConflictException
- there's unique constraints on the name properties for both of these nodes.
02-17-2021 08:28 AM
Well that's a warning sign that you are going to potentially lose information, which may or may not be what you want...
What you can do, is delete the unique constraints, do the merge, and then recreate the constraints.
All the sessions of the conference are now available online