writeConcern property

WriteConcern? writeConcern
getter/setter pair

A document expressing the write concern. Omit to use the default write concern.

Do not explicitly set the write concern for the operation if run in a transaction. To use write concern with transactions, see Transactions and Write Concern.

New in version 3.2.

Implementation

WriteConcern? writeConcern;