neo4j cypher查询返回没有行,列出比较问题

时间:2017-08-08 13:55:12

标签: list neo4j comparison cypher

逗人, 我遇到了Cypher语法问题(我正在使用Neo3J 3.0.7),

这是我的问题:

with ['{"id":"401"}'] as s2
match(cpp:CPP) unwind cpp.property_suppliers as s1 with s1,s2,cpp 
where all(x IN s2 where x IN s1) return cpp

尽管我的db包含这个节点,但它没有返回任何行:

node_status ACTIF
role    [CPP]
property_productid  r001
property_quantity   320000.0
modelNodeId node_6efc6f94-6864-d162-897f-4000f8c0cb77_c__a_k__b
property_suppliers  [{"id":"401"},{"id":"402"}]
ui_position_in_anyView  { "position" : { "x" : 100.0, "y" : 100.0 } }
id  node_6efc6f94-6864-d162-897f-4000f8c0cb77
type    {http://fr.emac.gind/c2net/objective}Plan
property_deadline   1500388263
ui_dimension_in_anyView { "dimension" : { "width" : 53.04, "height" : 53.04 } }

如您所见,我的意愿是检索具有(至少)给定列表's2'供应商的'cpp'节点。

我想我遇到与弦相关的铸件有些麻烦? s1列表是否需要展开? 没有展开的查询:

with ['{"id":"401"}'] as s2
match(cpp:CPP) with s2,cpp 
where all(x IN s2 where x IN cpp.property_suppliers) return cpp

也没有返回行

我很感激任何帮助,我现在没有找到类似的问题。 最好 于连。

0 个答案:

没有答案