Class: LMSGraphQL::Mutations::Canvas::BeginMigrationToPushToAssociatedCourse

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

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, template_id:, comment: nil, send_notification: nil, copy_settings: nil, publish_after_initial_sync: nil) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/lms_graphql/mutations/canvas/begin_migration_to_push_to_associated_courses.rb', line 17

def resolve(course_id:, template_id:, comment: nil, send_notification: nil, copy_settings: nil, publish_after_initial_sync: nil)
  context[:canvas_api].call("BEGIN_MIGRATION_TO_PUSH_TO_ASSOCIATED_COURSES").proxy(
    "BEGIN_MIGRATION_TO_PUSH_TO_ASSOCIATED_COURSES",
    {
      "course_id": course_id,
      "template_id": template_id
    },
    {
      "comment": comment,
      "send_notification": send_notification,
      "copy_settings": copy_settings,
      "publish_after_initial_sync": publish_after_initial_sync
    },
  ).parsed_response
end