Skip to main content
$max returns the maximum field value across matching documents. If missing is set, missing fields are treated as that value.

Compatibility

Field must be FAST.

Arguments

Output

value can be null when no values are available.