I'm trying to associate two lists, in a one-to-one relationship.
This query is returning the following: all objects in p are merged with only the first element of r.
I need something like id1(n)-[:HAS_ID]-id2(n)
MATCH p=(n:ID1) MATCH r=(o:ID2) WITH p, r LIMIT 100 UNWIND nodes(p) AS ids1 UNWIND nodes(r) AS ids2 MERGE (ids1)-[:HAS_ID]->(ids2)
Solved! Go to Solution.