OPTIONS

$max

On this page

Definition

$max

Deprecated since version 3.2: The $max operator is deprecated. Use cursor.max() instead.

Specify a $max value to specify the exclusive upper bound for a specific index in order to constrain the results of find(). The $max specifies the upper bound for all keys of a specific index in order.

The mongo shell provides the max() wrapper method.