Optional
Readonly
returnOptional. Default: false. A boolean that, if true, indicates that the action should return the document in its updated form instead of its original, pre-update form.
Optional
Readonly
upsert?: booleanOptional. Default: false. A boolean that, if true, indicates that MongoDB should insert a new document that matches the query filter when the query does not match any existing documents in the collection.
Generated using TypeDoc
Options passed when finding and modifying a single document