FindOneAndUpdateOptions
Defined in: packages/client/src/types.ts:113
Extends
Section titled “Extends”Properties
Section titled “Properties”projection?
Section titled “projection?”
optionalprojection?:Projection
Defined in: packages/client/src/types.ts:114
returnDocument?
Section titled “returnDocument?”
optionalreturnDocument?:"before"|"after"
Defined in: packages/client/src/types.ts:116
Return the document as it was “before” or is “after” the update (default “before”).
optionalsort?:Sort
Defined in: packages/client/src/types.ts:110
Which matching document comes first (updateOne, findOneAnd*).
Inherited from
Section titled “Inherited from”upsert?
Section titled “upsert?”
optionalupsert?:boolean
Defined in: packages/client/src/types.ts:108
Insert a document when nothing matches.
Inherited from
Section titled “Inherited from”writeConcern?
Section titled “writeConcern?”
optionalwriteConcern?:object
Defined in: packages/client/src/types.ts:91
{ w: 'drive' } waits until the change is saved in Google Drive (slower).
optionalw?:"log"|"drive"
Inherited from
Section titled “Inherited from”Made by Faeiz Furqan