Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-20-2021 12:41 AM
<Please keep the following things in mind:
Please format code + Cypher statements with the code </>
icon, it's much easier to read.
Please provide the following information if you ran into a more serious issue:
PROFILE
or EXPLAIN
with boxes expanded (lower right corner)This is my failed cypher.
I wanted to give a name according to the type of change row._labels name.
Is it possible? Thank you!
LOAD CSV WITH HEADERS FROM 'file:///neo4j_data_ansi.csv' AS row
CREATE (row._labels: row._labels)
return *
Solved! Go to Solution.
04-20-2021 01:01 AM
I forgot the YIELD
:
LOAD CSV WITH HEADERS FROM 'file:///neo4j_data_ansi.csv' AS row
CALL apoc.create.node([row._labels], {name: row.name, count: row.Count})
YIELD node
RETURN node
04-20-2021 12:51 AM
Hello @Novice
You will have to use APOC plugin, for example:
LOAD CSV WITH HEADERS FROM 'file:///neo4j_data_ansi.csv' AS row
CALL apoc.create.node([row._labels], {name: row.name, count: row.Count})
YIELD node
RETURN node
Links:
Regards,
Cobra
04-20-2021 01:00 AM
Hi, Thank you reply !
Install APOC plugin and I was try it.
Is it wrong way??
04-20-2021 01:01 AM
I forgot the YIELD
:
LOAD CSV WITH HEADERS FROM 'file:///neo4j_data_ansi.csv' AS row
CALL apoc.create.node([row._labels], {name: row.name, count: row.Count})
YIELD node
RETURN node
04-20-2021 01:05 AM
oh...!
nice work!
Thank you! Have a nice day!!
All the sessions of the conference are now available online