Class: LMSGraphQL::Resolvers::Canvas::ListGroupsAvailableInContextAccount

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

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, only_own_groups: nil, include: nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/lms_graphql/resolvers/canvas/list_groups_available_in_context_accounts.rb', line 11

def resolve(account_id:, only_own_groups: nil, include: nil)
  context[:canvas_api].call("LIST_GROUPS_AVAILABLE_IN_CONTEXT_ACCOUNTS").proxy(
    "LIST_GROUPS_AVAILABLE_IN_CONTEXT_ACCOUNTS",
    {
      "account_id": ,
      "only_own_groups": only_own_groups,
      "include": include            },
    nil,
  ).parsed_response
end