wrote findByIdAndSave extension for mongoose