There seems to be inconsistency when using $or in combination with $elemMatch. See steps to reproduce.
- duplicates
-
SERVER-14662 Positional projection queries (and positional update ops) should fail with error if multiple arrays encountered
- Closed
- is related to
-
SERVER-11536 $elemMatch matches too many elements
- Closed
-
SERVER-14837 Positional Operator matching wrong nested document
- Closed
- related to
-
SERVER-12981 $or in $elemMatch works inconsistently on master
- Closed
-
SERVER-14662 Positional projection queries (and positional update ops) should fail with error if multiple arrays encountered
- Closed