Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/graphql/pagination/filterable_array_connection.rb')
-rw-r--r--lib/gitlab/graphql/pagination/filterable_array_connection.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gitlab/graphql/pagination/filterable_array_connection.rb b/lib/gitlab/graphql/pagination/filterable_array_connection.rb
deleted file mode 100644
index 4a76cd5fb00..00000000000
--- a/lib/gitlab/graphql/pagination/filterable_array_connection.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module Graphql
- module Pagination
- # FilterableArrayConnection is useful especially for lazy-loaded values.
- # It allows us to call a callback only on the slice of array being
- # rendered in the "after loaded" phase. For example we can check
- # permissions only on a small subset of items.
- class FilterableArrayConnection < GraphQL::Pagination::ArrayConnection
- def nodes
- @nodes ||= items.filter_callback.call(super)
- end
- end
- end
- end
-end