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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • Query 2019-08-12

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: