cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

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

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client