writeConcern property

WriteConcern? writeConcern
getter/setter pairinherited

A document expressing the write concern. of the update operation. 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.

Implementation

WriteConcern? writeConcern;