Mongoose FindOneandUpdate - Only update Specific fields leave others with the previous values

前端 未结 0 1524
我在风中等你
我在风中等你 2021-01-06 21:04

I would like to update just the fields that the user chose to update, but right now if I don\'t fill all the inputs, they became null in the data base. this is the back end<

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