【发布时间】:2014-05-24 18:04:27
【问题描述】:
我正在尝试查找具有多个传入关系的所有节点。鉴于此数据:
a-[has]->b
a-[has]->c
d-[has]->b
所以,我正在寻找一个返回“b”的查询,因为它有多个传入。
此查询已关闭。它返回 'a' 和 'b',因为它们都有 2 个关系:
match (n)--()
with n,count(*) as rel_cnt
where rel_cnt > 1
return n;
但是,这个查询(添加'-->')没有返回任何内容,我不知道为什么:
match (n)-->()
with n,count(*) as rel_cnt
where rel_cnt > 1
return n;
这一切都错了吗?
【问题讨论】: