Class: LMSGraphQL::Mutations::Canvas::RemoveAccountAdmin
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::RemoveAccountAdmin
- Defined in:
- lib/lms_graphql/mutations/canvas/remove_account_admin.rb
Instance Method Summary collapse
Instance Method Details
#resolve(account_id:, user_id:, role: nil, role_id: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/lms_graphql/mutations/canvas/remove_account_admin.rb', line 15 def resolve(account_id:, user_id:, role: nil, role_id: nil) context[:canvas_api].call("REMOVE_ACCOUNT_ADMIN").proxy( "REMOVE_ACCOUNT_ADMIN", { "account_id": account_id, "user_id": user_id, "role": role, "role_id": role_id }, {}, ).parsed_response end |