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

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

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rod.adams@mongodb.com Rod Adams
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: