Return the recently added subdocument in Mongoose

后端 未结 0 968
-上瘾入骨i
-上瘾入骨i 2020-12-18 04:40

Mongoose findOneAndUpdate method by default returns the document that has been updated. If you were adding a sub document in a given document, the returned docu

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