summaryrefslogtreecommitdiff
path: root/app/graphql/types/packages/nuget/metadatum_type.rb
blob: ed9d97724af91353cd0c3ec413eec95b077e76c2 (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::Types::String, null: false, description: 'License URL of the Nuget package.'
        field :project_url, GraphQL::Types::String, null: false, description: 'Project URL of the Nuget package.'
        field :icon_url, GraphQL::Types::String, null: false, description: 'Icon URL of the Nuget package.'
      end
    end
  end
end