Return nothing in a match statement


(Ddebeul) #1

Hi, I would like to know if there is a possibility when doing a match that it return nothing I just want to set properties on nodes e.g :

LOAD CSV WITH HEADERS FROM "file:///result.csv" AS line
MATCH(n:DVL {ondernemingsnummer: line.ondernemingsnummer}) set n.fourHops = line.cnt return n;

In this example, I don't want to return anything but set property fourHops


(Andrew Bowman) #2

That approach should be fine. Ending with a SET, REMOVE, MERGE, CREATE, or DELETE should work.


(Ddebeul) #3

Thanks Andrew, indeed it's working.