使用 Cypher 向现有节点添加标签 [英] Add label to existing node with Cypher
本文介绍了使用 Cypher 向现有节点添加标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 Cypher 查询向现有节点添加标签?
How can I add a label to an existing node using a Cypher query?
推荐答案
那在参考文档中,参见 http://docs.neo4j.org/chunked/stable/query-set.html#set-set-a-label-on-a-node,你需要使用 set
给现有节点添加标签:
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屋!
查看全文