📌  相关文章
📜  如果不存在则创建 neo4j - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:15.453000             🧑  作者: Mango

代码示例2
MERGE (n {name: '3'}) //Create if a node with name='3' does not exist else match it
MERGE (test2 {name:'2'}) //Create if a node with name='2' does not exist else match it
MERGE (n)-[:know {r:'123'}]->(test2) //Create the relation between these nodes if it does not already exist