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

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

module Resolvers
  module WorkItems
    class TypesResolver < BaseResolver
      type Types::WorkItems::TypeType.connection_type, null: true

      def resolve
        # This will require a finder in the future when groups/projects get their work item types
        # All groups/projects use the default types for now
        ::WorkItems::Type.default.order_by_name_asc
      end
    end
  end
end