Constructs a WriteConcern from the write concern properties.
Optional
w: Wrequest acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
Optional
wtimeoutMS: numberspecify a time limit to prevent write operations from blocking indefinitely
Optional
journal: booleanrequest acknowledgment that the write operation has been written to the on-disk journal
Optional
fsync: boolean | 1equivalent to the j option. Is deprecated and will be removed in the next major version.
Optional
fsyncEquivalent to the j option.
Optional
jRequest acknowledgment that the write operation has been written to the on-disk journal.
Optional
Readonly
journalRequest acknowledgment that the write operation has been written to the on-disk journal
Optional
Readonly
wRequest acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
Optional
wtimeoutSpecify a time limit to prevent write operations from blocking indefinitely.
Optional
Readonly
wtimeoutMSSpecify a time limit to prevent write operations from blocking indefinitely
Static
applyApply a write concern to a command document. Will modify and return the command.
Static
fromConstruct a WriteConcern given an options object.
Optional
options: WriteConcernOptions | W | WriteConcernOptional
inherit: WriteConcernOptions | WriteConcern
A MongoDB WriteConcern, which describes the level of acknowledgement requested from MongoDB for write operations.
See
https://www.mongodb.com/docs/manual/reference/write-concern/