Skip to content

UpdateOptions

Defined in: packages/client/src/types.ts:106

optional sort?: Sort

Defined in: packages/client/src/types.ts:110

Which matching document comes first (updateOne, findOneAnd*).


optional upsert?: boolean

Defined in: packages/client/src/types.ts:108

Insert a document when nothing matches.


optional writeConcern?: object

Defined in: packages/client/src/types.ts:91

{ w: 'drive' } waits until the change is saved in Google Drive (slower).

optional w?: "log" | "drive"

WriteOptions.writeConcern

Made by Faeiz Furqan