OuterObject contains nested NestedObject.
OuterObject1 contains NestedObject1, NestedObject2
OuterObject2 contains NestedObject3, NestedObject4
I would like to filter outer objects based on one criteria (A) on the nested objects and then return the outer object and its nested objects that pass a different second criteria (B).
So, if NestedObject1 passed my criteria A and NestedObject2 passes criteria B then I would return: