Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5783

Document that countDocuments() uses $match and may not support the same filters as find/count commands

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • Hide

      DRIVERS-2728:
      Drivers must document restrictions for filters in the countDocuments API that result from the API using aggregation pipeline.

      Suggested wording:

      Due to countDocuments using the $match aggregation pipeline stage, certain query operators cannot be used in countDocuments. This includes the $where and $near query operators, among others. Details can be found in the documentation for the $match aggregation pipeline stage.

      The documentation link for $match is https://www.mongodb.com/docs/manual/reference/operator/aggregation/match/#restrictions.

      Show
      DRIVERS-2728 : Drivers must document restrictions for filters in the countDocuments API that result from the API using aggregation pipeline. Suggested wording: Due to countDocuments using the $match aggregation pipeline stage, certain query operators cannot be used in countDocuments. This includes the $where and $near query operators, among others. Details can be found in the documentation for the $match aggregation pipeline stage. The documentation link for $match is https://www.mongodb.com/docs/manual/reference/operator/aggregation/match/#restrictions .

      This ticket was split from DRIVERS-2728, please see that ticket for a detailed description.

            Assignee:
            Unassigned Unassigned
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: