Class: LMSGraphQL::Mutations::Canvas::ActivateRole

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/activate_role.rb

Instance Method Summary collapse

Instance Method Details

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



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/lms_graphql/mutations/canvas/activate_role.rb', line 15

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