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

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
    • Sprint:
      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

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: