Add label to existing node with Cypher

前端 未结 1 1342
情书的邮戳
情书的邮戳 2021-02-05 00:24

How can I add a label to an existing node using a Cypher query?

1条回答
  •  囚心锁ツ
    2021-02-05 00:37

    That's in the reference docs, see http://docs.neo4j.org/chunked/stable/query-set.html#set-set-a-label-on-a-node, you need to use set to a add a label to a existing node:

    match (n {id:desired-id})
    set n :newLabel
    return n
    

    0 讨论(0)
提交回复
热议问题