Class: LMSGraphQL::Mutations::Canvas::UpdateStudentQuestionScoresAndComment

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/update_student_question_scores_and_comments.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, quiz_id:, id:, attempt:, fudge_points: nil, questions: nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/lms_graphql/mutations/canvas/update_student_question_scores_and_comments.rb', line 14

def resolve(course_id:, quiz_id:, id:, attempt:, fudge_points: nil, questions: nil)
  ctx[:canvas_api].proxy(
    "UPDATE_STUDENT_QUESTION_SCORES_AND_COMMENTS",
    {
      "course_id": course_id,
      "quiz_id": quiz_id,
      "id": id,
      "attempt": attempt,
      "fudge_points": fudge_points,
      "questions": questions            },
    nil,
  ).parsed_response
end