Class: LMSGraphQL::Mutations::Canvas::DeleteCommunicationChannelType

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/delete_communication_channel_type.rb

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, type:, address:) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/lms_graphql/mutations/canvas/delete_communication_channel_type.rb', line 14

def resolve(user_id:, type:, address:)
  context[:canvas_api].call("DELETE_COMMUNICATION_CHANNEL_TYPE").proxy(
    "DELETE_COMMUNICATION_CHANNEL_TYPE",
    {
      "user_id": user_id,
      "type": type,
      "address": address
    },
    {},
  ).parsed_response
end