Welcome to mirror list, hosted at ThFree Co, Russian Federation.

upload_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0bb7f68cdba76cb8c589923e0988fdd4ef9582ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Types
  class UploadType < BaseObject
    graphql_name 'FileUpload'

    authorize :read_upload

    field :id, Types::GlobalIDType[::Upload],
      null: false,
      description: 'Global ID of the upload.'
    field :path, GraphQL::Types::String,
      null: false,
      description: 'Path of the upload.'
    field :size, GraphQL::Types::Int,
      null: false,
      description: 'Size of the upload in bytes.'
  end
end