Skip to main content

Hint Support

Hints must appear at the beginning of the command text. Format: /*+ name=value */. Multiple hint blocks are allowed.

Supported hints:

HintDescriptionExample
overwrite_find_limitOverrides the limit applied to find / findOne./*+ overwrite_find_limit=10 */ db.mycol.find({})
overwrite_find_skipOverrides the skip applied to find / findOne./*+ overwrite_find_skip=20 */ db.mycol.find({})
overwrite_find_as_countConverts find into a countDocuments result./*+ overwrite_find_as_count */ db.mycol.find({})