Collections return entities in an array, not a separate "string" for each result. The advantage of this, for example: I want to get all the addresses associated with the contact.
Match (c:Contact)-[:AddressRelation]->(a:Address)
return c,collect(a)
, ( )
- :
row = {name: "fred" }, [{address1}, {address2},...]
:
row = {name: "fred" }, {address1}
row = {name: "fred" }, {address2}
... ...
, , , node foreach ..