Class: LMSGraphQL::Resolvers::Canvas::ListAssignmentsAssignment

Inherits:
CanvasBaseResolver
  • Object
show all
Defined in:
lib/lms_graphql/resolvers/canvas/list_assignments_assignments.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, include: nil, search_term: nil, override_assignment_dates: nil, needs_grading_count_by_section: nil, bucket: nil, assignment_ids: nil, order_by: nil, post_to_sis: nil, get_all: false) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/lms_graphql/resolvers/canvas/list_assignments_assignments.rb', line 18

def resolve(course_id:, include: nil, search_term: nil, override_assignment_dates: nil, needs_grading_count_by_section: nil, bucket: nil, assignment_ids: nil, order_by: nil, post_to_sis: nil, get_all: false)
  result = context[:canvas_api].call("LIST_ASSIGNMENTS_ASSIGNMENTS").proxy(
    "LIST_ASSIGNMENTS_ASSIGNMENTS",
    {
      "course_id": course_id,
      "include": include,
      "search_term": search_term,
      "override_assignment_dates": override_assignment_dates,
      "needs_grading_count_by_section": needs_grading_count_by_section,
      "bucket": bucket,
      "assignment_ids": assignment_ids,
      "order_by": order_by,
      "post_to_sis": post_to_sis            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end