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

Consider allowing empty specification in aggregation projection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Aggregation Framework
    • Labels:
      None

      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

            Assignee:
            backlog-server-query Backlog - Query Team
            Reporter:
            anton.korshunov Anton Korshunov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: