cancel
Showing results for 
Search instead for 
Did you mean: 

Neo.ClientError.Statement.SyntaxError

IchsanALi
Node Link
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