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
This is straight forward.
MATCH (a)-[r]-(b) WHERE a.type = 'foo' AND b.type = 'foo' RETURN DISTINCT r
You could equally use the new syntax:
MATCH (a { type : 'foo' }) -[r] - (b {type : 'foo'}) RETURN DISTINCT r
If you prefer it.