19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/lms_graphql/resolvers/canvas/list_assignments_assignment_groups.rb', line 19
def resolve(course_id:, assignment_group_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_ASSIGNMENT_GROUPS").proxy(
"LIST_ASSIGNMENTS_ASSIGNMENT_GROUPS",
{
"course_id": course_id,
"assignment_group_id": assignment_group_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
|