-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Query
-
None
https://jira.mongodb.org/browse/MONGOID-5330 changed operator methods to always be additive to the existing query instead of replacing the previous conditions on the top level. The old behavior is still available via a feature flag.
We could implement merge strategies over all operators, including the ones affected by https://jira.mongodb.org/browse/MONGOID-5330, to provide a more convenient way of obtaining the previous replacement behavior.
However, as described in https://jira.mongodb.org/browse/MONGOID-5350, merge strategies do not currently work when conditions are added under $and, and this probably needs to be resolved first.
- depends on
-
MONGOID-5350 Merge strategies produce wrong queries when previous conditions weren't added to top level
- Backlog
- related to
-
MONGOID-5330 Operator methods overwrite previous conditions
- Closed