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.

Skipping lines when load CSV

I have a simple LOAD CSV
with a single MERGE statement.
My question is:
How can I skip to load an entire row depending on the value of a single field?
somethink like

SKIP if row.active = 1
Thank you

1 ACCEPTED SOLUTION

Hello @p.dipietro

Something like this?

LOAD CSV WITH HEADERS FROM 'file:///your_file.csv' AS row
WITH row
WHERE row.active <> 1
MERGE (:Node {name: row.name})

Regards,
Cobra

View solution in original post

1 REPLY 1

Hello @p.dipietro

Something like this?

LOAD CSV WITH HEADERS FROM 'file:///your_file.csv' AS row
WITH row
WHERE row.active <> 1
MERGE (:Node {name: row.name})

Regards,
Cobra