Class: LMSGraphQL::Mutations::Canvas::UsersUploadFile

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/users_upload_file.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/users_upload_file.rb', line 12

def resolve(user_id:)
  context[:canvas_api].call("USERS_UPLOAD_FILE").proxy(
    "USERS_UPLOAD_FILE",
    {
      "user_id": user_id
    },
    {},
  ).parsed_response
end