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.namereturns"example", anddocument.agereturns30.document = MongoDefaultDocument(date="12/24/2018", temperature=20)will return a MongoDefaultDocument object so thatdocument.datereturns"12/24/2018", anddocument.temperaturereturns20.