Accenture/Cymple

Referential On Match Set Properties

NOT-HAL9000 opened this issue · 1 comments

How would I build something like this?

How do I reference n.likes and build the expression within the on_match().set({"n.likes": _WHAT GOES HERE_ }) dictionary.

MERGE (n:NODE, {name: 'test'}) ON CREATE SET n.likes = 0 ON MATCH SET n.likes = n.likes + 1

Hi @NOT-HAL9000 ,

Thank you for the report!
The issue has been fixed, merged and deployed. 

Fix details: The set function now receives a new boolean argument called escape_value which when set to False, the values will not be enclosed by quotation marks.

The query from your request can be built using the following code:

image