Mongoose - findOneAndUpdate() + $pull doesn't work

前端 未结 0 891
醉梦人生
醉梦人生 2020-12-03 07:18

I wrote code like this. And it doesn\'t work.

List.findOneAndUpdate({ name: listName },
        { $pull: { "items": { _id: id } } },
        (err, r         


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