max

Aggregate

Returns the maximum numeric value in an array. With a field argument, extracts that field from each object and returns the largest value found.

Syntaxmax:field?
fieldoptionalField name to compare from each object. Omit for arrays of numbers.

Use cases

All commands