blob: 01f966942a48c5c55b3458b343b98f0125661413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
module Resolvers
module Ci
class InheritedVariablesResolver < BaseResolver
type Types::Ci::ProjectVariableType.connection_type, null: true
def resolve
object.group&.self_and_ancestors&.flat_map(&:variables) || []
end
end
end
end
|