答案 0 :(得分:2)
这可能只是本书中的拼写错误,也可能是旧语法风格。您应该将括号括在from
和to
变量中:
load csv with headers from "file:/your/path/to/rels.csv"
as rels
match (from {id: rels.From}), (to {id: rels.To})
create (from)-[:REL {type: rels.`Relationship Type`}]->(to)
return from, to
答案 1 :(得分:1)
尝试添加这样的括号:
CREATE (from)-[:REL {type:rels.`Relationship type`}]->(to)
在v3.0之前,模式中的括号不是强制性的,现在它们是。