Returns an aggregation of the minimum value n elements within a group.
If the group contains fewer than n elements, $minN returns all elements in the group.
Param: collection
The input array
Param: expr
The right-hand side expression value of the operator
Returns an aggregation of the minimum value n elements within a group. If the group contains fewer than n elements, $minN returns all elements in the group.