Constructs a WriteConcern from the write concern properties.
可选w: Wrequest acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
可选wtimeout: numberspecify a time limit to prevent write operations from blocking indefinitely
可选j: booleanrequest acknowledgment that the write operation has been written to the on-disk journal
可选fsync: boolean | 1equivalent to the j option
可选fsyncequivalent to the j option
可选jrequest acknowledgment that the write operation has been written to the on-disk journal
可选wrequest acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
可选wtimeoutspecify a time limit to prevent write operations from blocking indefinitely
静态fromConstruct a WriteConcern given an options object.
可选options: WriteConcernOptions | WriteConcern | W可选inherit: WriteConcernOptions | WriteConcern
A MongoDB WriteConcern, which describes the level of acknowledgement requested from MongoDB for write operations.
参阅
https://www.mongodb.com/docs/manual/reference/write-concern/