write_concern – Tools for specifying write concern

class pymongo.write_concern.``WriteConcern(w=None, wtimeout=None, j=None, fsync=None)

  • acknowledged

    If True write operations will wait for acknowledgement before returning.

  • The document representation of this write concern.

    Note

    is immutable. Mutating the value of document does not mutate this .

  • Does this WriteConcern match the server default.

Previous topic

Next topic

Quick search