Mongoose: set subdocument fields back to default values

后端 未结 0 1809
有刺的猬
有刺的猬 2021-02-08 10:29

I have a mongoose model that includes a subdocument to keep track of statistics. I want to use updateMany() to reset the statistics field on all documents to the de

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