diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-29 15:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-29 15:09:08 +0300 |
commit | 7cc6872401eb487ed20dbb9d455f8bb9c97d9e39 (patch) | |
tree | 63f6ed5d4e6c5cec31c43363626d9f5b178eddf8 /lib/gitlab/graphql | |
parent | 46b10c0fc884400941c17e2777b242ac54d111e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb b/lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb new file mode 100644 index 00000000000..1adedb500e6 --- /dev/null +++ b/lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true +module Gitlab + module Graphql + module Extensions + class ExternallyPaginatedArrayExtension < GraphQL::Schema::Field::ConnectionExtension + def resolve(object:, arguments:, context:) + yield(object, arguments) + end + end + end + end +end |