Cypher where子句因多条路径而失败

问题描述 投票:0回答:1

使用下面的密码我尝试返回节点:

它们必须通过特定关系连接,并且关系中的属性值必须大于1。

match (n:Title)-[rel:REQUIRES_SKILL]->(x:Skill)
where rel.frequency > 1
return n, rel, x

如果两个节点之间存在多个关系,则不起作用。它返回每个关系,甚至是频率值等于1的关系。

enter image description here

neo4j cypher
1个回答
3
投票

尝试关闭Connect result nodes。否则,在结果节点之间显示所有可能的关系。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.