Class: LMS::GraphQL::Mutations::Canvas::DeactivateRole

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/deactivate_role.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, id:, role_id:, role: nil) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/lms/graphql/mutations/canvas/deactivate_role.rb', line 13

def resolve(account_id:, id:, role_id:, role: nil)
  ctx[:canvas_api].proxy(
    "DEACTIVATE_ROLE",
    {
      "account_id": ,
      "id": id,
      "role_id": role_id,
      "role": role              },
    nil,
  ).parsed_response
end