Mongoose delete array item in every subdocument

前端 未结 0 2027
独厮守ぢ
独厮守ぢ 2021-02-13 02:44

i have an User (click) Model with a cart where products are stored (just the id). If i want to delete a product from the Shop, the product should be also deleted from every user

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