Class: LMSGraphQL::Mutations::Canvas::RemoveCourseFromFavorite

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/remove_course_from_favorites.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/remove_course_from_favorites.rb', line 12

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