max
Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group.
Return
the field
Parameters
expression
the expression
Creates an update that sets the value of the property if the given value is greater than the current value of the property.
Return
the update
Parameters
property
the property
value
the value