Class: LMSGraphQL::Mutations::Canvas::DeleteEntryCourse

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

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, topic_id:, id:) ⇒ Object



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

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