Add rationale for why the filter parameter is required for countDocuments

XMLWordPrintableJSON

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: