Class: LMSGraphQL::Mutations::Canvas::ImportCategoryGroup

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

Instance Method Summary collapse

Instance Method Details

#resolve(group_category_id:, attachment: nil) ⇒ Object



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

def resolve(group_category_id:, attachment: nil)
  context[:canvas_api].call("IMPORT_CATEGORY_GROUPS").proxy(
    "IMPORT_CATEGORY_GROUPS",
    {
      "group_category_id": group_category_id
    },
    {
      "attachment": attachment
    },
  ).parsed_response
end