我希望能够获得我创建的文档所需的列表或某种类型的字段集。例如,这是我的文档:
nickName = StringField(required=True)
password = StringField(required=True)
firstName = StringField()
lastName = StringField()
joinDate = DateTimeField(required=True)
lastVisited = DateTimeField(required=True)
subscriptions = DictField(field=ObjectIdField())
isActivated = BooleanField(default=True)
profileImage = FileField()
isModerator = BooleanField(default=False)
description = StringField()
location = GeoPointField()
email = EmailField()
settings = DictField()
^从这份文件中我应该收到:
["nickName","password","joinDate","lastVisited"]
作为必填字段的结果。这可能吗?如果是这样,我怎样才能达到预期的结果。
提前致谢!