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"
^

Correct syntax:

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

can run

Thank you
(migrated from khoros post Solved: Re: Neo.ClientError.Statement.SyntaxError - Neo4j - 58731)