Using MERGE with exact number of labels

Viewed 29

Suppose you have a node like this one

MERGE (n1:Label1:Label2 { name:"name1" })

Now, I would like to be able to use the MERGE clause to create also the following new node:

MERGE (n2:Label1 { name:"name1" })

But since n2 is a "sub-set" of n1 Neo4j doesn't create a new node. So, my question is: is there a way to use MERGE to match/create a node with the exact number of specified labels and without using the CREATE clause?

0 Answers
Related