Neo4J 通过 ID 获取节点 [英] Neo4J get node by ID
本文介绍了Neo4J 通过 ID 获取节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的一个项目使用 neo4j,有一个节点只有一个属性作为 name
,我想使用 ID 获取该节点,它已经有一个 ID,但是当我使用这段代码
I am using neo4j for one of my project, there's a node which only has a single property as name
, I want to get that node using ID, it already has a ID but when I use this code
MATCH (s:SKILLS{ID:65110}) 返回 s
它什么都不返回,这是我的节点
It returns nothing, heres my node
如果查询错了,如何使用号码查询
If the query is wrong then how do I query it using the number
推荐答案
MATCH (s)
WHERE ID(s) = 65110
RETURN s
ID
函数为您提供节点或关系的 id.这不同于您创建的任何名为 id
或 ID
的属性.
The ID
function gets you the id of a node or relationship. This is different from any property called id
or ID
that you create.
这篇关于Neo4J 通过 ID 获取节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文