-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.1.11, 9.0.9
-
Component/s: Query
-
None
MONGOID-5780 was a response to a report that Foo.not.not.where was functionally equivalent to Foo.not.where – multiple nots did not negate each other, as would have been expected.
Unfortunately, the implementation of not (sans arguments) in Mongoid was not intended to be a toggle, and implementing it as a toggle broke some other expectations.
As a short-term fix, I think we should roll back that change. In the longer term, I've added MONGOID-5916 to address larger concerns around this parameterless not syntax.
- is related to
-
MONGOID-5889 Query negation with allow_scopes_to_unset_default_scope
-
- Closed
-