这是我在 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 。
任何帮助,将不胜感激。
克里斯