-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Public API
-
None
-
Minor Change
The problem arrises when doing a find on a collection with collation, and then chaining a count_documents on the end. For example:
db[:band].insert_many([{ name: "Depeche Mode" }, { name: "New Order" }]) db[:bands].find({ name: 'DEPECHE MODE' }, { collation: { locale: 'en_US', strength: 2 }}).count_documents
This would return 0, because the count_documents function doesn't get the collation option from the View generated by find.
- is depended on by
-
MONGOID-4898 Add an estimated_count method to model classes, change count to use count_documents
- Closed