I have two collections, one containing nodes, and another containing rels and nodes (see http://console.neo4j.org/?id=ijoqaa)
What I try to achieve is to update the rel properties , depending on the whether a node in one collection is also present in the other. The code below illustrates this (hopefully), although it's not valid cypher.
FOREACH (iterm in iterms|
CASE
WHEN NOT (iterm[1] IN iaterms) THEN
REMOVE iterms[0].pos,iterms[0].neg
SET iterm[0].explicit=1
END
)
Question: what is the way to do this in cypher ?