debian-mirror-gitlab/app/graphql/resolvers/environments/nested_environments_resolver.rb
2023-03-05 14:24:40 +05:30

18 lines
406 B
Ruby

# frozen_string_literal: true
module Resolvers
module Environments
class NestedEnvironmentsResolver < EnvironmentsResolver
include Gitlab::Graphql::Authorize::AuthorizeResource
type Types::NestedEnvironmentType, null: true
authorizes_object!
authorize :read_environment
def resolve(**args)
offset_pagination(super(**args).nested)
end
end
end
end