How to add too high number of columns from csv to neo4j

Heyy , i want to import data from csv to neo4j with around 200 columns. Is there any easy way i can import it without writing every headername in "load csv" command? please suggest

Thank You.

LOAD CSV WITH HEADERS FROM <url> AS row
CREATE (p:Person)
SET p=row

will set all csv columns as properties.

Be warned: having 200 properties on a node for sure indicates a small on your data model. Take a read on the existing material and best practices on graph data modelling.

1 Like