gitlab-org--gitlab-foss/app/graphql/types/issuable_searchable_field_e...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
332 B
Ruby
Raw Normal View History

# 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