I'm trying to run a MERGE
query against an AWS Neptune database using their new OpenCypher implementation but MERGE
is not yet supported as a clause.
Is there a way to get the behaviour of a MERGE
without using a MERGE
in Neptune's OpenCypher implementation?
I'm hoping it's possible to do something like:
MATCH (ee:Person {name: "Sam"})
IF ee IS NULL THEN
CREATE ...
ELSE
SET ee += {...}
END
Obviously this is just pseudocode, but is there any way of achieving this behaviour without handling it in the application making the call?