Goodmorning,
I want to shorten and merge the Paths into one relation with properties from exististing relations.
When I Merge One User to object I get the relationship NEW_OK with All the TRUE Properties.
But I get an error Not enough Memory when I want to merge the rest. So I am using transactions.
So With
MATCH (u:User)-[r1]->(a:A)<--(o:Object)<--(ro:Role)<-[r2]-(u)
CALL { WITH u, r1, o, r2
MERGE (u)-[r:NEW]->(o)
SET r.a = (r1 = r2)
, r.b = (r1 = r2)
etc...
} IN TRANSACTIONS
;
Then I dont get all Properties set but NEW_NOK.