I need to iteratively create relationships between nodes based on the nodes' properties, which change during the loop. I am trying to go about it like this:
MATCH (A), (B)
WHERE NOT (A)-[:BOND]-(B)
AND A<>B
FOREACH (a in A |
FOREACH (b in...
These work great. For my specific use-case I therefore summarise -
CALL apoc.periodic.commit(
"
MATCH (a)
WHERE a.slots > 0
WITH a LIMIT 1
MATCH (b)
WHERE b.slots > 0
AND NOT EXISTS ( (a)-[:BOND]-(b...
Hi Gary, thanks so much for all your effort - that makes sense. I think I might use the python API here, to handle all of the iterative logic externally in python, using cypher only to query.
Thanks again, I learned quite a bit in this process.
Regar...
Also, the URLs & password under 'Your Sandbox Credentials' on Sign In with Auth0 change every time the page is reloaded, so I don't know how to stay connected to the same sandbox environment / database. Maybe the sandbox not working has something to ...