MongoDB: cursor.max() method

Last update on April 14 2018 06:14:57 (UTC/GMT +8 hours)

cursor.max

The cursor.max() method is used to specify the exclusiveupper bound for a specific index in order to constrain the results offind(). The max()provides a way to specify an upper bound on compound key indexes.