Answers for "not create if exist neo4j"

0

not create if exist neo4j

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
Posted by: Guest on October-03-2021
0

create if not exists neo4j

Use MERGE instead of CREATE
Posted by: Guest on August-05-2021

Code answers related to "not create if exist neo4j"

Browse Popular Code Answers by Language