Consider allowing empty specification in aggregation projection

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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: {}}

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Anton Korshunov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: