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

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

module Resolvers
  module Ci
    class InheritedVariablesResolver < BaseResolver
      type Types::Ci::ProjectVariableType.connection_type, null: true

      argument :sort, Types::Ci::GroupVariablesSortEnum,
        required: false, default_value: :created_desc,
        description: 'Sort variables by the criteria.'

      def resolve(sort:)
        ::Ci::GroupVariablesFinder.new(object, sort).execute
      end
    end
  end
end