Class: LMSGraphQL::Mutations::Canvas::AddObservee

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/add_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
25
# File 'lib/lms_graphql/mutations/canvas/add_observee.rb', line 14

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