使用Cypher的多个WHERE EXISTS

时间:2016-09-09 19:30:45

标签: neo4j cypher

是否可以在CQL / Cypher中使用多个WHERE EXISTS? 基于OpenStreetMap数据集,如下所示(不允许):

MATCH path=((node_osm)-[t:TAGS]->(node_addr))
WHERE EXISTS(node_osm.`lat`) AND WHERE EXISTS(node_osm.`lon`)
RETURN path

如果我使用它:

WHERE EXISTS(node_osm.`lat`) AND (node_osm.`lon`)

我收到此错误消息: Don't know how to treat that as a predicate: 4.4732509

如何在Neo4j 3.0.4中使用多个WHERE EXISTS和CQL / Cypher?

1 个答案:

答案 0 :(得分:5)

你试过了吗?

WHERE EXISTS(...) AND EXISTS(...)