Class: LMSGraphQL::Mutations::Canvas::SetCourseNickname
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::SetCourseNickname
- Defined in:
- lib/lms_graphql/mutations/canvas/set_course_nickname.rb
Instance Method Summary collapse
Instance Method Details
#resolve(course_id:, nickname:) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/lms_graphql/mutations/canvas/set_course_nickname.rb', line 13 def resolve(course_id:, nickname:) context[:canvas_api].call("SET_COURSE_NICKNAME").proxy( "SET_COURSE_NICKNAME", { "course_id": course_id }, { "nickname": nickname }, ).parsed_response end |