Details
-
Task
-
Resolution: Unresolved
-
Unknown
-
None
-
None
-
Not Needed
Description
When the countDocuments API was added I believe the intention was to make the filter parameter required, that is coll.countDocuments() is not allowed, it has to be coll.countDocuments({}). However I can't find any such rationale in the spec itself. We should add rationale for why the filter parameter is required for countDocuments and perhaps even add a spec test that calling countDocuments without a filter will raise an error.
Attachments
Issue Links
- is related to
-
DRIVERS-501 Implement new count API
-
- Closed
-