read_concern – Tools for working with read concern.

Tools for working with read concerns.

  • class pymongo.readconcern.ReadConcern(_level=None)

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.

  • document
  • The document representation of this read concern.

Note

ReadConcern is immutable. Mutating the value ofdocument does not mutate this ReadConcern.

  • level
  • The read concern level.

  • ok_for_legacy

  • Return True if this read concern is compatible withold wire protocol versions.