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}) return 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屋!
查看全文