2012-08-16 134 views
1

這是我在Cypher支架查詢...結合的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。

任何幫助,將不勝感激。

克里斯

回答