cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Return nothing in a match statement

ddebeul
Node Link

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

1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2

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

Thanks Andrew, indeed it's working.