示例#1
0
class Doc(Document):
    __collection__ = 'testdoc'
    s = fields.SetField(fields.IntegerField())
示例#2
0
class Doc(Document):
    __collection__ = 'testdocs'
    li = fields.SetField(fields.ReferenceField(RDoc))
示例#3
0
class Doc(Document):
    __collection__ = 'testdocs'
    li = fields.SetField(fields.EmbeddedDocumentField(EDoc))