2

这是我在 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 。

任何帮助,将不胜感激。

克里斯

4

1 回答 1

2

克里斯,这是在 ML 上回答的,http ://groups.google.com/group/neo4j/browse_thread/thread/56ecfef3130f2d92 ?

于 2012-08-20T06:54:59.937 回答