class LMSGraphQL::Mutations::Canvas::UpdateMultiplePreferencesType

Public Instance Methods

resolve(type:, address:, notification_preferences__X__frequency:) click to toggle source
# File lib/lms_graphql/mutations/canvas/update_multiple_preferences_type.rb, line 14
def resolve(type:, address:, notification_preferences__X__frequency:)
  context[:canvas_api].call("UPDATE_MULTIPLE_PREFERENCES_TYPE").proxy(
    "UPDATE_MULTIPLE_PREFERENCES_TYPE",
    {
      "type": type,
      "address": address
    },
    {
      "notification_preferences[<X>][frequency]": notification_preferences__X__frequency
    },
  ).parsed_response
end