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

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

module Types
  class IssuableSearchableFieldEnum < BaseEnum
    graphql_name 'IssuableSearchableField'
    description 'Fields to perform the search in'

    Issuable::SEARCHABLE_FIELDS.each do |field|
      value field.upcase, value: field, description: "Search in #{field} field."
    end
  end
end