This seems really poorly documented.. The documentation example just has callback
being passed to update. There is a link redirecting to Model.update
here and the example shows the parameters of the callback are (err, numberAffected, raw)
.
Does the Document#update callback pass the same parameters? I was hoping to get the updated document returned. My initial search was based on how to update a document in mongo db but even the answer there doesn't explain or even list the params of the callback.