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

Allow $max, $min, $avg calculations in $project.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None

      Description

      We have $add, $subtract, and other operators which can be used a $project operation, so it makes sense to add other basic operators, such as $max, $min, and $avg. I would expect each of these to take an array.

      Yes, these could be constructed with existing operators, but it becomes tedious. In particular, the n-variable max case.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: