2017-12-21 5 views

답변

1

은 사용하는 쿼리를 다시해야한다, 당신이 어떤 수익을 필요가 없습니다 merge

MATCH (n:User) 
    where n.firstname = 'Mark' 
merge n.school = 'MIT' ; 

을 시도 match ... return

같은 당 https://neo4j.com/docs/cypher-refcard/current/ §merge

Match a pattern or create it if it does not exist. Use ON CREATE and ON MATCH for conditional updates.

MERGE (n:Person {name: $value}) 
    ON CREATE SET n.created = timestamp() 
    ON MATCH SET 
    n.counter = coalesce(n.counter, 0) + 1, 
    n.accessTime = timestamp() 
관련 문제