Hey community,
I've just discovered that the direction of a merge relationship is important:
1.
MATCH (team :Team) WHERE ...
WITH team
MERGE (user :User { email: 'neo@gmail.com' })-[act :ACTING_BY]->(team)
Creates or updates the 'user' and 'act', whereas:
2.
MERGE (user :User { email: 'neo@gmail.com' })<-[act :ACTING_BY]-(team)
Always creates a new 'user' and 'act'
Is there any specific reason?
(PS: I use the latest Aura version)