Collection
Last updated
Was this helpful?
Last updated
Was this helpful?
__bound__
The PyMongo Collection instance this class is bound to, or None
if not bound. Primarily meant to be used as a truthy value; utilize .get_collection()
to acquire a handle to the PyMongo Collection if intended for use.
DefaultNone
__collection__
The string name of the collection to bind to. Can be used as a truthy value to identify if a Document
class is top-level or not.
DefaultNone
__projection__
A read-only calculated property generated at class construction time identifying the default projection to utilize. This is derived from the available fields and their project
predicates.
__read_preference__
The default read preference to utilize when binding. Must be an appropriate attribute value of the PyMongo object or customized instance of a class.
DefaultReadPreference.PRIMARY
__read_concern__
DefaultReadConcern(level=None)
__write_concern__
DefaultWriteConcern(w=1, wtimeout=None, j=None, fsync=None)
__collection__
DefaultNone
__collection__
DefaultNone
__collection__
DefaultNone
__collection__
DefaultNone
The read concern (level of isolation) to utilize when binding. Must be a PyMongo instance.
The default write concern (level of confirmation) to utilize when binding. Must be a PyMongo instance.