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

Change 'output' to be 'input' in syntax for $firstN/$lastN/$minN/$maxN

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QE 2021-11-15
    • 135

      Currently, the exact top N operators have the following syntax:

      {$minN: {n: <expression for n>, output: <output expression>}}

      While this might make sense in the case of accumulators, this syntax is potentially confusing when the operators are used as expressions because the 'output' field is really the input to the expression. As such, we should consider modifying the syntax to disambiguate what is meant by the 'output' field.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: