Class: LMSGraphQL::Mutations::Canvas::DeleteCalendarEvent

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

Instance Method Summary collapse

Instance Method Details

#resolve(id:, cancel_reason: nil) ⇒ Object



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

def resolve(id:, cancel_reason: nil)
  context[:canvas_api].call("DELETE_CALENDAR_EVENT").proxy(
    "DELETE_CALENDAR_EVENT",
    {
      "id": id,
      "cancel_reason": cancel_reason
    },
    {},
  ).parsed_response
end