Class: LMSGraphQL::Mutations::Canvas::CreateSubgroupCourse
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::CreateSubgroupCourse
- Defined in:
- lib/lms_graphql/mutations/canvas/create_subgroup_courses.rb
Instance Method Summary collapse
Instance Method Details
#resolve(course_id:, id:, title:, description: nil, vendor_guid: nil) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/lms_graphql/mutations/canvas/create_subgroup_courses.rb', line 16 def resolve(course_id:, id:, title:, description: nil, vendor_guid: nil) context[:canvas_api].call("CREATE_SUBGROUP_COURSES").proxy( "CREATE_SUBGROUP_COURSES", { "course_id": course_id, "id": id }, { "title": title, "description": description, "vendor_guid": vendor_guid }, ).parsed_response end |