mongoose.js make update methods stop returning documents

前端 未结 0 687
走了就别回头了
走了就别回头了 2020-12-18 23:55

I wonder if it is possible to not return any data from database after using the SOME_MODEL.findOneAndUpdate() function.

I can of course use lean()<

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