min

Aggregate

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

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

Use cases

All commands