简体   繁体   English

Neo4j中的Cypher Where IN ['GUID','GUID']

[英]Cypher Where IN ['GUID', 'GUID'] in Neo4j

I am trying to find nodes in Neo4j Db by Guid from my object. 我试图从我的对象中找到Guid在Neo4j Db中的节点。

I have 'Id' field in my object, which is Guid. 我的对象是Guid,其中包含“ Id”字段。 Need to find several nodes by those Guid Id, but when I use Where clause and use IN command with array of Guid Id's I get response, that (no changes, no records) 需要通过那些Guid Id查找几个节点,但是当我使用Where子句并将IN命令与Guid Id的数组一起使用时,我会得到响应,(没有更改,没有记录)

MATCH (n) WHERE n.Id IN ['44BEE918-507A-15C6-0950-0017D4A12234', 'BC2D286F-0B73-6926-B01D-27C8F0EA919D'] RETURN n LIMIT 25

I tried to pass Guids without quotes and with double quotes, but it didn't help. 我试图通过不带引号和双引号的Guid,但这没有帮助。 When I pass the Name of those nodes it works perfect. 当我传递这些节点的名称时,它可以正常工作。 What I am doing wrong? 我做错了什么?

I found an issue. 我发现了一个问题。 The problem was with case sensitivity. 问题在于区分大小写。 Means my Guid in the database looks like '44bee918-507a-15c6-0950-0017d4a12234', but I tried to find in upper case. 意味着我在数据库中的Guid看起来像是'44bee918-507a-15c6-0950-0017d4a12234',但是我尝试用大写字母查找。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM