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

Create aggregation passthrough that wraps each pipeline within a $facet stage

    • Fully Compatible
    • Query 2016-08-29, Query 2016-09-19

      Any pipeline originalPipeline is logically equivalent to running the following pipeline:

      [{$facet: {results: <originalPipeline>}}, {$unwind: '$results'}, {$replaceRoot: {newRoot: '$results'}}]
      

      We should add a passthrough suite which does this transformation to each pipeline to increase test coverage of the $facet stage.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: