Closed graphadvantage closed 9 years ago
Hey @qosmy-michael, sorry for the delay here!
results
is an array of Cypher result rows, so if your Cypher query matches and returns multiple nodes, you can simply get all of them via that results
array.
(So i.e. don't index [0]
; instead, iterate over all results
.)
You can find examples of this in User.getAll
and User.prototype.getFollowingAndOthers
.
Hope that helps! Feel free to re-open if something is still unclear.
Hi Aseem,
is there a simple way to return (and query the properties of) multiple nodes? Template works great for single nodes, looking for a method to handle multiple nodes from a cypher query. I can create callback variables for each node...seems like there should be a better way
Thanks! Michael