Is there a way to update the entire mongoengine document by just passing updated class instance instead of passing all the fields to be updated?

前端 未结 0 943
一生所求
一生所求 2021-01-18 10:03

Let\'s assume there\'s a mongoengine model

class Post(Document):
   name = StringField()
   id   = LongField()
   postContent = StringField()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题