summaryrefslogtreecommitdiff
path: root/app/graphql/types/work_items/type_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/work_items/type_type.rb')
-rw-r--r--app/graphql/types/work_items/type_type.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/graphql/types/work_items/type_type.rb b/app/graphql/types/work_items/type_type.rb
new file mode 100644
index 00000000000..f31bd7ee9ba
--- /dev/null
+++ b/app/graphql/types/work_items/type_type.rb
@@ -0,0 +1,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