findbyidandupdate new true option meaning 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) {...