I'm creating nodes with CREATE
command like the following:
CREATE (d:A { name:'one_string' })
when I run such a query, I get the following error message:
Node(12079) already exists with label `B` and property `name` = 'a_different_string'
As you see, I'm creating a node with a different label and property value and still get such an error. And, I don't really understand why running such a query should throw an error (note: I've defined a constraint on names of all types of Labels to be UNIQUE.)
One point is that, since I'm testing my graph building process multiple times, every time that I want to create nodes from the beginning, I first delete all the existing nodes using the following command:
MATCH (a:A) DELETE a
I'm wondering if this may cause the problem?
Edit: I'm running the queries in python using the neo4j python driver version 1.7.4 and when I run the exact command --from which I get an error-- in the neo4j desktop command-line I don't get any error.