debian-mirror-gitlab/app/graphql/resolvers/environments/nested_environments_resolver.rb

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

19 lines
406 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# 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