document
– The ORM core¶monguo.document.
BaseDocument
¶The document base, not support query operations.
fields_dict
()¶Get all the Field instance attributes.
validate_document
(document)¶Validate the given document.
Parameters: |
|
---|
monguo.document.
EmbeddedDocument
¶The embedded document, not support query operations.
monguo.document.
Document
¶The ORM core, supports all the query operations of motor.
get_collection
(pymongo=False)¶Get the collection related to cls, it’s an instance of
MotorCollection
.
Parameters: |
|
---|
get_collection_name
()¶Get the collection name related to cls.
get_database
(pymongo=False)¶Get the database related to cls, it’s an instance of
MotorDatabase
.
Parameters: |
|
---|
get_database_name
()¶Get the database name related to cls.
to_list
(*args, **kwargs)¶Warp cursor.to_list() since length is required in cursor.to_list
translate_dbref
(*args, **kwargs)¶Get the document related with dbref.
Parameters: |
|
---|
translate_dbref_in_document
(*args, **kwargs)¶Translate dbrefs in the specified document.
Parameters: |
|
---|
translate_dbref_in_document_list
(*args, **kwargs)¶Translate dbrefs in the document list.
Parameters: |
|
---|