Class: LMSGraphQL::Mutations::Canvas::AddCourseToFavorite
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::AddCourseToFavorite
- Defined in:
- lib/lms_graphql/mutations/canvas/add_course_to_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/add_course_to_favorites.rb', line 12 def resolve(id:) context[:canvas_api].call("ADD_COURSE_TO_FAVORITES").proxy( "ADD_COURSE_TO_FAVORITES", { "id": id }, {}, ).parsed_response end |