read_concern – Tools for working with read concern.
Tools for working with read concerns.
Parameters:
- level: (string) The read concern level specifies the level ofisolation for read operations. For example, a read operation using aread concern level of
majority
will only return data that has beenwritten to a majority of nodes. If the level is left unspecified, theserver default will be used.
New in version 3.2.
Note
ReadConcern
is immutable. Mutating the value ofdocument
does not mutate this ReadConcern
.