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.

Neo.ClientError.Statement.SyntaxError

LOAD CSV WITH HEADERS FROM "file:///rels.csv" AS rels
match (from {id: rels.From}), (to {id: rels.To})
create from-[:REL {type: rels.`Relationship Type`}]->to
return from, to
 
Invalid input 'from': expected "(", "allShortestPaths" or "shortestPath" (line 3, column 8 (offset: 112))
"create from-[:REL {type: rels.`Relationship Type`}]->to"
        ^
 
1 ACCEPTED SOLUTION

ameyasoft
Graph Maven

Correct syntax:

create (from)-[:REL {type: rels.`Relationship Type`}]->(to)

View solution in original post

2 REPLIES 2

ameyasoft
Graph Maven

Correct syntax:

create (from)-[:REL {type: rels.`Relationship Type`}]->(to)

can run

Thank you

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online