summaryrefslogtreecommitdiff
path: root/app/graphql/types/packages/nuget/metadatum_type.rb
blob: 63fae2fb1975892e13b47e99fbcc313fd6b9e2f3 (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
  module Packages
    module Nuget
      class MetadatumType < BaseObject
        graphql_name 'NugetMetadata'
        description 'Nuget metadata'

        authorize :read_package

        field :id, ::Types::GlobalIDType[::Packages::Nuget::Metadatum], null: false, description: 'ID of the metadatum.'
        field :license_url, GraphQL::STRING_TYPE, null: false, description: 'License URL of the Nuget package.'
        field :project_url, GraphQL::STRING_TYPE, null: false, description: 'Project URL of the Nuget package.'
        field :icon_url, GraphQL::STRING_TYPE, null: false, description: 'Icon URL of the Nuget package.'
      end
    end
  end
end