debian-mirror-gitlab/lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb

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

13 lines
312 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module Gitlab
module Graphql
module Extensions
class ExternallyPaginatedArrayExtension < GraphQL::Schema::Field::ConnectionExtension
def resolve(object:, arguments:, context:)
2021-04-17 20:07:23 +05:30
yield(object, arguments, arguments)
2020-03-13 15:44:24 +05:30
end
end
end
end
end