summaryrefslogtreecommitdiff
path: root/app/graphql/types/work_items/type_type.rb
blob: 4d008a21b9ca8c2cbc72aed4b9f20be632683f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Types
  module WorkItems
    class TypeType < BaseObject
      graphql_name 'WorkItemType'

      authorize :read_work_item_type

      field :icon_name, GraphQL::Types::String, null: true,
                                                description: 'Icon name of the work item type.'
      field :id, Types::GlobalIDType[::WorkItems::Type], null: false,
                                                         description: 'Global ID of the work item type.'
      field :name, GraphQL::Types::String, null: false,
                                           description: 'Name of the work item type.'
    end
  end
end