Class: LMSGraphQL::Mutations::Canvas::DeletePageCourse

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

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, url:) ⇒ Object



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

def resolve(course_id:, url:)
  context[:canvas_api].call("DELETE_PAGE_COURSES").proxy(
    "DELETE_PAGE_COURSES",
    {
      "course_id": course_id,
      "url": url
    },
    {},
  ).parsed_response
end