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

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

module Types
  class ReleaseAssetsType < BaseObject
    graphql_name 'ReleaseAssets'

    authorize :read_release

    alias_method :release, :object

    present_using ReleasePresenter

    field :assets_count, GraphQL::INT_TYPE, null: true,
          description: 'Number of assets of the release'
    field :links, Types::ReleaseLinkType.connection_type, null: true,
          description: 'Asset links of the release'
    field :sources, Types::ReleaseSourceType.connection_type, null: true,
          description: 'Sources of the release'
  end
end