You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep $elemMatch behavior consistent with MongoDB #131
Document Layer allows $elemMatch to work against nonarray fields, whereas MongoDB allows only on array fields. Array operators semantics are quite confusing already. Although allowing $elemMatch on nonarray fields allows a few extra cases, it's leading to confusing semantics. Also, its possible to represent those extra queries with cleared, arguably longer queries.
This issue is to change the behavior back to supporting the operator only for array fields.
Although this is a backward incompatible change, I think we should go for it as this is a bit consistent for different queries especially when we use it together with None.
Activity