Skip to main content
Version: 7.1

MongoFindOptions <T>

Options for MongoDB find operations.

Hierarchy

Index

Properties

optionalinheritedallowDiskUse

allowDiskUse?: boolean

optionalchunkSize

chunkSize?: number

optionalinheritedcollation

collation?: CollationOptions

optionalctx

ctx?: ClientSession

optionalfields

fields?: string[]

optionalinheritedindexHint

indexHint?: string | Dictionary

optionallimit

limit?: number

optionalloggerContext

loggerContext?: LoggingOptions

optionalinheritedmaxTimeMS

maxTimeMS?: number

optionaloffset

offset?: number

optionalorderBy

orderBy?: QueryOrderMap<T> | QueryOrderMap<T>[]

optionalinheritedsignal

signal?: AbortSignal

Forwarded to the MongoDB driver. When fired, the driver aborts the in-flight operation by closing the underlying socket; the rejection reason is signal.reason.