class LMSGraphQL::Mutations::Canvas::GradeOrCommentOnMultipleSubmissionsSectionsSubmission
Public Instance Methods
resolve(section_id:, grade_data__student_id__posted_grade: nil, grade_data__student_id__excuse: nil, grade_data__student_id__rubric_assessment: nil, grade_data__student_id__text_comment: nil, grade_data__student_id__group_comment: nil, grade_data__student_id__media_comment_id: nil, grade_data__student_id__media_comment_type: nil, grade_data__student_id__file_ids: nil, grade_data__student_id__assignment_id: nil)
click to toggle source
# File lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_sections_submissions.rb, line 21 def resolve(section_id:, grade_data__student_id__posted_grade: nil, grade_data__student_id__excuse: nil, grade_data__student_id__rubric_assessment: nil, grade_data__student_id__text_comment: nil, grade_data__student_id__group_comment: nil, grade_data__student_id__media_comment_id: nil, grade_data__student_id__media_comment_type: nil, grade_data__student_id__file_ids: nil, grade_data__student_id__assignment_id: nil) context[:canvas_api].call("GRADE_OR_COMMENT_ON_MULTIPLE_SUBMISSIONS_SECTIONS_SUBMISSIONS").proxy( "GRADE_OR_COMMENT_ON_MULTIPLE_SUBMISSIONS_SECTIONS_SUBMISSIONS", { "section_id": section_id }, { "grade_data[<student_id>][posted_grade]": grade_data__student_id__posted_grade, "grade_data[<student_id>][excuse]": grade_data__student_id__excuse, "grade_data[<student_id>][rubric_assessment]": grade_data__student_id__rubric_assessment, "grade_data[<student_id>][text_comment]": grade_data__student_id__text_comment, "grade_data[<student_id>][group_comment]": grade_data__student_id__group_comment, "grade_data[<student_id>][media_comment_id]": grade_data__student_id__media_comment_id, "grade_data[<student_id>][media_comment_type]": grade_data__student_id__media_comment_type, "grade_data[<student_id>][file_ids]": grade_data__student_id__file_ids, "grade_data[<student_id>][assignment_id]": grade_data__student_id__assignment_id }, ).parsed_response end