[英]How to get results from a depth request with Neo4J and the java-rest-binding?
I have no problem with this cypher request : 我对此密码请求没有任何问题:
MATCH user-[r:OWE_TO*]->final
WHERE user.name="toto" AND user.name <> final.name
AND r[0].value=r[length(r)-1].value
RETURN final.name;
My results are what I expect but when I use the same with the java-rest-binding I only receive the first result. 我的结果符合我的期望,但是当我将其与java-rest-binding一起使用时,我只会收到第一个结果。 I suppose my problem is about the REST response. 我想我的问题与REST响应有关。 How could I manage to get all my return nodes with this wrapper ? 我如何设法使用此包装器获取所有返回节点? (I have not planned to switch to the spring-rest-client neither to the embedded in this project) (我既没有计划切换到spring-rest-client,也没有切换到这个项目的嵌入式系统)
Thanks in advance, 提前致谢,
You can collect the nodes and send the result as an Array. 您可以收集节点并将结果作为数组发送。
MATCH user-[r:OWE_TO*]->final
WHERE user.name="toto" AND user.name <> final.name
AND r[0].value=r[length(r)-1].value
RETURN collect(final.name) as finalnames;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.