what does findbyidandupdate return when no id is found 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) {...