示例#1
0
 class ListDoc(BaseDocument):
     nums = fields.ListField(fields.IntField())
示例#2
0
 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))
示例#5
0
 class EmbedDoc(BaseDocument):
     ref_lst = fields.ListField(fields.DocumentField(IntDoc))
示例#6
0
 class MapDoc(BaseDocument):
     mapping = fields.MapField(fields.ListField(fields.IntField()))