-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Component/s: CRUD
-
None
-
Not Needed
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.
- is related to
-
DRIVERS-501 Implement new count API
- Closed