Given this:
{ _id: 1, results: [ {a: 82, b: 81}, {a: 82, b: 88} ] }
{ _id: 2, results: [ {a: 82, b: 90}, {a: 82, b: 33} ] }
I want to find the docs which have no results with a or b less than 80. (doc 1 in this case) I know I could use $elemMatch to find the docs with any result containing an a or b less than 80. Is there a way to do the reverse?
Alternatively, I could rewrite my conditions to find docs where all results have a and b greater than 79. Is there an operator which does that?