How to Mongoose findOne and findOneAndUpdate efficiently

后端 未结 0 921
醉酒成梦
醉酒成梦 2021-01-26 23:38

I\'m currently trying to update a data structure in a MongoDB document (using mongoose) as efficiently as possible. I have the following code:

User.findOne({userI         


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