I am uploading a csv file, and tried to generate the nodes with labels that are defined in the csv, i.e. dynamically:
LOAD CSV WITH HEADERS FROM 'nodes.csv' AS row
MERGE (n:$(row.node_type) {id: row.id});
but I get this error:
Neo.ClientError.Statement.SyntaxError
Invalid input '
I am using the example from the doc:
: expected a node label/relationship type name, '%' or '(' (line 3, column 14 (offset: 92)) " MERGE (n:$(row.node_type) {id: row.id});"
I am using the example from the doc:
https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/
