Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.org/master/reference/operator/query/in/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
*Referrer*: https://www.google.it/
*Screen Resolution*: 1920 x 1920
*repo*: docs
*source*: reference/operator/query/in
*Location*: https://docs.mongodb.org/master/reference/operator/query/in/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 *Referrer*: https://www.google.it/ *Screen Resolution*: 1920 x 1920 *repo*: docs *source*: reference/operator/query/in
-
0.25
Description
Hello,
In the example:
{ field:
{ $in: [<value1>, <value2>, ... <valueN> ] }}
Does the $in operator always start comparing the array values starting from the first element (index 0, i.e. value1 above) and stops as soon as the first match is found?
That is an important assumption to make: could you please add a note to clarify that?
Thank you in advance. Regards