Class: LMS::GraphQL::Mutations::Canvas::ReorderQuizItem

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/reorder_quiz_items.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, id:, order_id:, order_type: nil) ⇒ Object



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

def resolve(course_id:, id:, order_id:, order_type: nil)
  ctx[:canvas_api].proxy(
    "REORDER_QUIZ_ITEMS",
    {
      "course_id": course_id,
      "id": id,
      "order[id]": order_id,
      "order[type]": order_type              },
    nil,
  ).parsed_response
end