Hi,
I have succesfully load elemenst with apoc.load.xml and now I want to create with that data relationships between nodes, they are already in the database:
// it works fine, it returns a list of begin ,end pairs (5 pairs) :
WITH
[item in children3 WHERE item._type = "begin"][0] AS begin,
[item in children4 WHERE item._type = "end"][0] AS end
// I want to bind cities with relatioship "CONNECTED", but the following statements makes only the very first relationship. What ist here wrong ?
Match (a:city), (b:city)
WHERE a.name = begin._text AND b.name = end._text
CREATE (a)-[:CONNECTED]->(b)
Could you please give me some instructions to solve the issue ?
Thanks,
Michel