Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Minor Change
Description
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.
Attachments
Issue Links
- is depended on by
-
MONGOID-4898 Add an estimated_count method to model classes, change count to use count_documents
-
- Closed
-