Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15611

Support returning both the matched documents and the count of matched documents in the aggregation framework

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Query 2019-08-12

      Currently, we can compute a count of the documents using the following aggregation pipelines:

      However, with this pipeline, we won't be able to get all the matched documents. It would be nice if we can get both the matched documents and the count of the matched documents in one aggregation command.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: