Class: LMSGraphQL::Mutations::Canvas::DeleteSection

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

Instance Method Summary collapse

Instance Method Details

#resolve(id:) ⇒ Object



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

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