Class: LMSGraphQL::Mutations::Canvas::RemoveObservee

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

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, observee_id:, root_account_id: nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/lms_graphql/mutations/canvas/remove_observee.rb', line 14

def resolve(user_id:, observee_id:, root_account_id: nil)
  context[:canvas_api].call("REMOVE_OBSERVEE").proxy(
    "REMOVE_OBSERVEE",
    {
      "user_id": user_id,
      "observee_id": observee_id,
      "root_account_id": 
    },
    {},
  ).parsed_response
end