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.

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.