-
Type: New Feature
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Mongoid currently always (attempts to) evolve values used in a query. However, this behavior may not always be desirable when working with data created by other applications or when working with corrupt data.
For example, suppose a field is declared of integer type, but the database contains some values which are strings (stringified numbers). A query for these values with string input will mongoize string input to numbers and query for numeric values, which won't find the desired documents.
ActiveRecord appears to always cast values when querying, which makes more sense because in a RDBMS there is a fixed column type.
- is duplicated by
-
MONGOID-5468 "Wrapper to skip query evolution" should evolve values in a field-independent manner
- Closed
- related to
-
MONGOID-5386 Pass through uncastable values in evolve
- Closed