findByIdAndUpdate react code example
Example: findbyidandupdate return old value
Model.findByIdAndUpdate(id, updateObj, {new: true}, function(err, model) {...
Model.findByIdAndUpdate(id, updateObj, {new: true}, function(err, model) {...