class ListDoc(BaseDocument): nums = fields.ListField(fields.IntField())
class Doc(BaseDocument): num = fields.IntField() string = fields.StringField() lst = fields.ListField(fields.IntField()) map1 = fields.MapField(fields.IntField()) map2 = fields.MapField(fields.StringField())
class EmbedDoc(BaseDocument): ref = fields.ListField(fields.MapField(fields.DocumentField(Outer)))
class Outer(BaseDocument): lst = fields.ListField(fields.DocumentField(Inner))
class EmbedDoc(BaseDocument): ref_lst = fields.ListField(fields.DocumentField(IntDoc))
class MapDoc(BaseDocument): mapping = fields.MapField(fields.ListField(fields.IntField()))