class LMSGraphQL::Mutations::Canvas::ReorderQuizItem

Public Instance Methods

resolve(course_id:, id:, order_id:, order_type: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/reorder_quiz_items.rb, line 15
def resolve(course_id:, id:, order_id:, order_type: nil)
  context[:canvas_api].call("REORDER_QUIZ_ITEMS").proxy(
    "REORDER_QUIZ_ITEMS",
    {
      "course_id": course_id,
      "id": id
    },
    {
      "order[id]": order_id,
      "order[type]": order_type
    },
  ).parsed_response
end