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

package_dependency_type.rb « packages « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dcbc9fa37845a6df8b6d3c9a8dd8242049a959ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true
# this model does not have any kind of authorization so we disable it
# rubocop:disable Graphql/AuthorizeTypes

module Types
  module Packages
    class PackageDependencyType < BaseObject
      graphql_name 'PackageDependency'
      description 'Represents a package dependency.'

      field :id, ::Types::GlobalIDType[::Packages::Dependency], null: false, description: 'ID of the dependency.'
      field :name, GraphQL::Types::String, null: false, description: 'Name of the dependency.'
      field :version_pattern, GraphQL::Types::String, null: false, description: 'Version pattern of the dependency.'
    end
  end
end