await each element in loop NodeJS to execute findOneAndDelete Method

前端 未结 0 966
失恋的感觉
失恋的感觉 2021-01-31 05:39

I want to execute a schema statistics as post findOneAndDelete middleware in mongoose. My code is calling the schema when I am looping over but it just calculate for only one do

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