【发布时间】:2012-08-16 21:13:11
【问题描述】:
这是我在 Cypher 中的查询...
START n=node(127)
MATCH(n)-[:friends]->(x)
WITH n, collect(distinct x) as friends
MATCH(n)-[:outer_only_friends]->(y)
RETURN friends, collect(distinct y) as outer
我正在尝试将朋友添加到外部集合并返回查询内部的集合。这样我就可以在查询中使用 LIMIT 和 SKIP。
任何帮助将不胜感激。
克里斯
【问题讨论】: