diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
commit | 017841e3c03105efd0b94e730652c5774f2c136f (patch) | |
tree | b2931e81db33138d3c32e058879a78635c0e2614 /app/graphql/types/packages/package_details_type.rb | |
parent | b19efd72743e22fd3b340b3c2906ba113e1390de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/packages/package_details_type.rb')
-rw-r--r-- | app/graphql/types/packages/package_details_type.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/graphql/types/packages/package_details_type.rb b/app/graphql/types/packages/package_details_type.rb new file mode 100644 index 00000000000..510b7e2ba41 --- /dev/null +++ b/app/graphql/types/packages/package_details_type.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Types + module Packages + class PackageDetailsType < PackageType + graphql_name 'PackageDetailsType' + description 'Represents a package details in the Package Registry. Note that this type is in beta and susceptible to changes' + authorize :read_package + + field :versions, ::Types::Packages::PackageType.connection_type, null: true, + description: 'The other versions of the package.' + + field :package_files, Types::Packages::PackageFileType.connection_type, null: true, description: 'Package files.' + + def versions + object.versions + end + end + end +end |