Class: LMSGraphQL::Resolvers::Canvas::ListAccountAdmin
- Inherits:
-
CanvasBaseResolver
- Object
- GraphQL::Schema::Resolver
- CanvasBaseResolver
- LMSGraphQL::Resolvers::Canvas::ListAccountAdmin
- Defined in:
- lib/lms_graphql/resolvers/canvas/list_account_admins.rb
Instance Method Summary collapse
Instance Method Details
#resolve(account_id:, user_id: nil, get_all: false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lms_graphql/resolvers/canvas/list_account_admins.rb', line 11 def resolve(account_id:, user_id: nil, get_all: false) result = context[:canvas_api].call("LIST_ACCOUNT_ADMINS").proxy( "LIST_ACCOUNT_ADMINS", { "account_id": account_id, "user_id": user_id }, nil, get_all, ) get_all ? result : result.parsed_response end |