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

module Types
  module Packages
    class PackageTagType < BaseObject
      graphql_name 'PackageTag'
      description 'Represents a package tag'
      authorize :read_package

      field :id, GraphQL::Types::ID, null: false, description: 'The ID of the tag.'
      field :name, GraphQL::Types::String, null: false, description: 'The name of the tag.'
      field :created_at, Types::TimeType, null: false, description: 'The created date.'
      field :updated_at, Types::TimeType, null: false, description: 'The updated date.'
    end
  end
end