Reputation: 1870
I have little bit complicated situation -
User.find({ isNew: true, isYellow: true, isBlue: true })
^^^required ^^^^^^^^^^^ one of them must be TRUE
as you can see above, isYellow
or isBlue
must be true
. I can't use $or
here, because its about two keys, not two values in one key.
Question: How to make query find all users with isNew === true
and isYellow
OR isBlue
true?
Thank you!
Upvotes: 2
Views: 52