示例#1
0
 class Post(schema.Document):
     title = schema.TextField()
     comments = schema.ListField(
         schema.DictField(
             schema.Schema.build(
                 author=schema.TextField(),
                 content=schema.TextField(),
             )))
示例#2
0
 class Post(schema.Document):
     comments = schema.ListField(schema.DictField)
示例#3
0
 class Thing(schema.Document):
     numbers = schema.ListField(schema.DecimalField)