Is there a cleaner way to perform an update and and throw errors if found using findByIdAndUpdate in Mongoose?

前端 未结 0 1017
抹茶落季
抹茶落季 2021-01-19 04:38

I have an update function that manages the update in my object, this is what it looks like:

//// THIS IS THE FIRST REQUEST

  let video = await Video.findById         


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