Class: LMSGraphQL::Mutations::Canvas::CreateObserverPairingCode
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::CreateObserverPairingCode
- Defined in:
- lib/lms_graphql/mutations/canvas/create_observer_pairing_code.rb
Instance Method Summary collapse
Instance Method Details
#resolve(user_id:) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/lms_graphql/mutations/canvas/create_observer_pairing_code.rb', line 12 def resolve(user_id:) context[:canvas_api].call("CREATE_OBSERVER_PAIRING_CODE").proxy( "CREATE_OBSERVER_PAIRING_CODE", { "user_id": user_id }, {}, ).parsed_response end |