File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ objects** as class attributes to the document class::
2727As BSON (the binary format for storing data in mongodb) is order dependent,
2828documents are serialized based on their field order.
2929
30+ .. _dynamic-document-schemas :
31+
3032Dynamic document schemas
3133========================
3234One of the benefits of MongoDB is dynamic schemas for a collection, whilst data
@@ -231,6 +233,9 @@ document class as the first argument::
231233 comment2 = Comment(content='Nice article!')
232234 page = Page(comments=[comment1, comment2])
233235
236+ Embedded documents can also leverage the flexibility of :ref: `dynamic-document-schemas: `
237+ by inheriting :class: `~mongoengine.DynamicEmbeddedDocument `.
238+
234239Dictionary Fields
235240-----------------
236241Often, an embedded document may be used instead of a dictionary – generally
You can’t perform that action at this time.
0 commit comments