summaryrefslogtreecommitdiff
path: root/app/graphql/types/packages/package_type.rb
blob: f6586670c7214884e0384a89b5c460a1f4a883fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Types
  module Packages
    class PackageType < Types::Packages::PackageBaseType
      graphql_name 'Package'
      description 'Represents a package with pipelines in the Package Registry'

      authorize :read_package

      field :pipelines,
            resolver: Resolvers::PackagePipelinesResolver,
            description: <<-DESC
              Pipelines that built the package. Max page size #{Resolvers::PackagePipelinesResolver::MAX_PAGE_SIZE}.
            DESC
    end
  end
end