can't figure out how to exclude child from result select , if both parent and child are selected using where clause .
parent is having incoming relationship from child and child/parent are same type of nodes .
Values) optional MATCH (area:
AREA) WITH area,p,child,collect(c) AS children WHERE ALL (c IN children WHERE c.y < 53 AND c.x >10)
Test is selected only if the all values are in certain range . if the parent (AREA) is selected, Child area should be excluded , even if its values fall under same range.
Could you please suggest a solution?