neo4j
neo4j document
altvirus
2014. 5. 9. 17:58
2.x에서 기존의 Create Unique을 대체
http://docs.neo4j.org/chunked/milestone/query-merge.html
MERGE (actor:Person { person_id:1 })
RETURN actor;
MERGE (movie:Movie { movie_id:100 })
RETURN movie;
MATCH (actor:Person { person_id:1 }),(movie:Movie { movie_id:100 })
MERGE (actor)-[r:ACTED_IN]->(movie)
RETURN r;