I\'m trying to update an instantiated model (\'Place\' - I know it works from other routes) in a MongoDB and have spent a while trying to properly do so. I\'m also trying t
Now, i think you can do this :
Place.findOneAndUpdate({name:req.params.name}, req.body, function (err, place) { res.send(place); });
You can find by id too :
Place.findOneAndUpdate({_id:req.params.id}, req.body, function (err, place) { res.send(place); });