Hello everyone,
I am trying to collect() a custom object, so I can return a nested object.
I'm using the following query :
MATCH (node)--(g:Group)
WHERE g.type = '{group}' AND id(node) = {id}
OPTIONAL MATCH (node)-[:HAS_PROPERTY]->(prop)
...
Wow, that works a lot better, thank you !
I still have an issue though, possibly because of the scope issue you're talking about. I now use this :
MATCH (node)--(g:Group),
(node)-[:HAS_PROPERTY]->(prop),
(node)-[:CONNECTED_TO]-(r...