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

Consider allowing empty specification in aggregation projection

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None
    • Query Optimization

    Description

      Currently, we allow an empty projection specification in find()-style projections, which defaults to an exclusion projection, but we ban in it aggregation. As part of projection unification project we may want to lift this restriction and allow an empty projection specification in aggregation as well. That is, the following projection will become valid and will be treated as an exclusion projection with all fields included into the output document:

      {$project: {}}

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: