I'm trying to merge a node, set a property if a new node was created, and set another property regardless of create or match. The cypher for this works perfectly:
MERGE (t:Thing { name: 'something' })
ON CREATE SET t.created = 'yes'
SET t.foo = 'bar'
I'm trying to merge a node, set a property if a new node was created, and set another property regardless of create or match. The cypher for this works perfectly:
However, the neo4j-core Query:
generates the cypher:
which is invalid because ON CREATE must immediately follow MERGE.
Runtime information:
Neo4j database version: 3.5.6 (Community)
neo4j-core
gem version: 9.0.0