Welcome to mirror list, hosted at ThFree Co, Russian Federation.

label_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 41d035c1aabff8c0a8cebe04c0fb23847bbb6dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Types
  class LabelType < BaseObject
    graphql_name 'Label'

    authorize :read_label

    field :description, GraphQL::STRING_TYPE, null: true
    field :title, GraphQL::STRING_TYPE, null: false
    field :color, GraphQL::STRING_TYPE, null: false
    field :text_color, GraphQL::STRING_TYPE, null: false
  end
end