使用Cypher将标签添加到现有节点 [英] Add label to existing node with Cypher
本文介绍了使用Cypher将标签添加到现有节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Cypher查询向现有节点添加标签?
How can I add a label to an existing node using a Cypher query?
推荐答案
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
这篇关于使用Cypher将标签添加到现有节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文