I\'ve a query that fetches nodes based on a property
MATCH (c { type: \'sometype\' }) WITH c LIMIT 100 RETURN c
all I want is to also fetch
alex,
Another way to approach this is this query:
MATCH (c {type : 'sometype'})-[r:*0..1]-(d {type : 'sometype'}) WITH c, collect(r) as rs RETURN c, rs
This allows for the case where there are no relationships of this sort.
Grace and peace,
Jim