CREATE UNIQUE with labels and properties
问题 I'm using Neo4j 2.0.0-M06. Just learning Cypher and reading the docs. In my mind this query would work, but I should be so lucky... I'm importing tweets to a mysql-database, and from there importing them to neo4j. If a tweet is already existing in the Neo4j database, it should be updated. My query: MATCH (y:Tweet:Socialmedia) WHERE HAS (y.tweet_id) AND y.tweet_id = '123' CREATE UNIQUE (n:Tweet:Socialmedia { body : 'This is a tweet', tweet_id : '123', tweet_userid : '321', tweet_username :