Skip to main content
Extremely Popular
Go to Latest
class GridFSFindOptions
import { GridFSFindOptions } from "https://deno.land/x/mongo@v0.31.2/src/types/gridfs.ts";

Properties

optional
allowDiskUse: boolean

Enables writing to temporary files on the server. When set to true, the server can write temporary data to disk while executing the find operation on the files collection.

This option is sent only if the caller explicitly provides a value. The default is to not send a value. For servers < 3.2, this option is ignored and not sent as allowDiskUse does not exist in the OP_QUERY wire protocol.

optional
batchSize: number

The number of documents to return per batch.

optional
limit: number

The maximum number of documents to return.

optional
maxTimeMS: number

The maximum amount of time to allow the query to run.

optional
noCursorTimeout: boolean

The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.

optional
skip: number

The number of documents to skip before returning.

optional
sort: Document

The order by which to sort results. Defaults to not sorting.