MongoDefaultDocument class
The default class for "custom_document" property to configure a MongoCollectionDataNode
.
Attributes:
Name | Type | Description |
---|---|---|
**kwargs |
dict[str, Any]
|
Attributes of the MongoDefaultDocument object. |
Example
document = MongoDefaultDocument(name="example", age=30)
will return a MongoDefaultDocument object so thatdocument.name
returns"example"
, anddocument.age
returns30
.document = MongoDefaultDocument(date="12/24/2018", temperature=20)
will return a MongoDefaultDocument object so thatdocument.date
returns"12/24/2018"
, anddocument.temperature
returns20
.