I am importing csv file from import directory by cypher and I would like to create nodes with labels from csv file. Which would look something like this
LOAD CSV WITH HEADERS FROM "file:///B.csv" AS csv
CREATE (c:csv.Type {name:csv.Name})
return c
I know that this is wrong, but hope you can show me the right way to do it. I couldn't find any answer in both neo4j community and in stackoverflow.