Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.org/manual/reference/operator/query/or/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1280 x 800
*repo*: docs
*source*: reference/operator/query/or
*Location*: https://docs.mongodb.org/manual/reference/operator/query/or/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1280 x 800 *repo*: docs *source*: reference/operator/query/or
Description
RE: "When using $or with <expressions> that are equality checks for the value of the same field, use the $in operator instead of the $or operator."
Why? What happens if I choose to use $or instead of $in?
It seems like the second clause is ignored. Right?