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. I suppose my problem is about the REST response. 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)
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;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.