12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/lms_graphql/resolvers/canvas/get_all_outcome_links_for_context_accounts.rb', line 12
def resolve(account_id:, outcome_style: nil, outcome_group_style: nil, get_all: false)
result = context[:canvas_api].call("GET_ALL_OUTCOME_LINKS_FOR_CONTEXT_ACCOUNTS").proxy(
"GET_ALL_OUTCOME_LINKS_FOR_CONTEXT_ACCOUNTS",
{
"account_id": account_id,
"outcome_style": outcome_style,
"outcome_group_style": outcome_group_style },
nil,
get_all,
)
get_all ? result : result.parsed_response
end
|