neo4j cypher 根据关系查询一个节点,不存在则创建
发布于 6 年前 作者 huanshen7428 2271 次浏览 来自 问答

大概逻辑是: match(a)-[r]->(b) where a.id=“123” and r.name="rName" case when not exist(b) then create(b) create(a)-[r]->(b) set r.name=“rName” as result 请教各位、怎么修改才能让它正确执行?

1 回复

用merge语句

回到顶部