Using findByIdAndUpdate functionality inserts duplicate data in mongoDB?

后端 未结 0 461
死守一世寂寞
死守一世寂寞 2021-02-20 13:57

I am trying to update a data inside the MongoDB database . I am using findByIdAndUpdate function to do this , but a duplicate data gets inserted into the database .

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