使用mongoDB动态EmbeddedDocument - MongoEngine

时间:2013-01-18 14:25:23

标签: mongodb mongoengine

所以,根据MongoEngine文档:

https://mongoengine-odm.readthedocs.org/en/latest/guide/defining-documents.html

类型A的文档需要从DynamicDocument继承,以便我们能够保存一个对象(类型为A),该对象具有比“正式”声明的字段更多的字段。

如何使EmbeddedDocument的行为类似于DynamicDocument?

1 个答案:

答案 0 :(得分:3)

听起来你想要DynamicEmbeddedDocument

相关问题