Note that the zero-argument count_documents invocation was only added to the driver recently, Mongoid should provide the empty hash explicitly as the argument.
If Mongoid currently supports driver versions that don't implement count_documents, the respective invocation needs to fall back to count.
- causes
-
MONGOID-5646 Model.count using aggregate pipeline
- Closed
- depends on
-
RUBY-2295 Collation option in view not included in count_documents
- Closed
- is duplicated by
-
MONGOID-4958 Link countDocuments <-> estimatedDocumentCount documentation
- Closed
- is related to
-
MONGOID-4960 Create an exception subclass for calling estimated_count on models with default scopes
- Closed
- related to
-
MONGOID-4890 Destroying model instances with dependent associations in transactions raises OperationFailure due to use of (deprecated) count
- Closed
-
RUBY-2280 Make empty hash optional to count_documents
- Closed
- links to