Class: LMSGraphQL::Mutations::Canvas::UpdatePreferenceCommunicationChannelId

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/update_preference_communication_channel_id.rb

Instance Method Summary collapse

Instance Method Details

#resolve(communication_channel_id:, notification:, notification_preferences_frequency:) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/lms_graphql/mutations/canvas/update_preference_communication_channel_id.rb', line 11

def resolve(communication_channel_id:, notification:, notification_preferences_frequency:)
  ctx[:canvas_api].proxy(
    "UPDATE_PREFERENCE_COMMUNICATION_CHANNEL_ID",
    {
      "communication_channel_id": communication_channel_id,
      "notification": notification,
      "notification_preferences[frequency]": notification_preferences_frequency            },
    nil,
  ).parsed_response
end