-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Query
-
Labels:None
MongoDB server, when using $eq and the argument is an array, matches two ways:
- argument array is the same as any of the field values
- argument array is an element of the field value (field value is a multi-dimensional array)
According to my reading of the code, Mongoid always performs array equality check when both matcher and matchee are an array, thus not matching second case that the server supports.