You should try the MERGE
keyword with neo4j 2.0. The CREATE UNIQUE
will be replaced by that. If no matching node exists a new one will be created. Otherwise the already existing one is used. Please have a look at http://blog.neo4j.org/2013/05/new-milestone-release-neo4j-200-m03.html
Neo4J 2.0 M4 - Create unique node with label and properties
Frage
I was wondering why such a Cypher statement was currently not possible with the latest milestone:
CREATE UNIQUE (n:Person { name : 'Andres' , title : 'Developer' })
Drop UNIQUE
and it will just work.
Any reason?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow