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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Rod Adams (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: