NodeJs, MongoDb - Why is my code duplicating documents instead of updating them?

前端 未结 0 1550
醉酒成梦
醉酒成梦 2020-12-15 15:42

I want to find an existing document in MongoDB by its _id. Everything works except trying to edit existing just creates a new document with a new _id instead of updating the

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