I am trying to remove an item from a collection that is stored in a mongoose document. My document looks like this:
{ \"__v\": 3, \"_id\": \"5221040475f
You want inventory.items.pull(req.params.itemSku), followed by an inventory.save call. .remove is for top-level documents
inventory.items.pull(req.params.itemSku)
inventory.save
.remove