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 Optional wtimeoutMS: numberspecify a time limit to prevent write operations from blocking indefinitely
Optional Optional journal: booleanrequest acknowledgment that the write operation has been written to the on-disk journal
Optional Optional fsync: boolean | 1equivalent to the j option. Is deprecated and will be removed in the next major version.
Optional Optional fsyncEquivalent to the j option.
Will be removed in the next major version. Please use journal.
Optional jRequest acknowledgment that the write operation has been written to the on-disk journal.
Will be removed in the next major version. Please use 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.
Will be removed in the next major version. Please use wtimeoutMS.
Optional Readonly wtimeoutMSSpecify a time limit to prevent write operations from blocking indefinitely
Static applyStatic fromConstruct a WriteConcern given an options object.
Optional options: WriteConcernOptions | mongoose.mongo.WriteConcern | WOptional Optional inherit: WriteConcernOptions | mongoose.mongo.WriteConcernOptional Generated using TypeDoc
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/