Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-31-2020 11:13 AM
I have gotten a query to work that compares two patterns. I am trying to update a changed property in the steps.
Here is the statement. If I take out the bold, it works fine. With it it issues the message.
MATCH (p1:ProgNode{compileunit:"dogan1612_hilti_practice.2020-07-28"})
WITH p1.inode AS inode, p1.KDM AS KDM
ORDER BY inode
CALL apoc.cypher.run('
MATCH (p2:ProgNode{compileunit:"dogan1612_hilti_practice.2020-08-28"})
WHERE p2.inode = $inode
AND p2.KDM <> $KDM
SET p2.changed = True
RETURN p2', {inode:inode, KDM:KDM}) YIELD value
WITH DISTINCT value.p2 AS p2
WITH count(p2) AS nb_nodes
RETURN CASE WHEN nb_nodes <> 0 THEN "changed" ELSE "nothing changed" END AS info, nb_nodes
All the sessions of the conference are now available online