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

offset_active_record_relation_connection.rb « pagination « graphql « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a57b7aceca0de2529d18281cce57331984c4917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

# We use the Keyset / Stable cursor connection by default for ActiveRecord::Relation.
# However, there are times when that may not be powerful enough (yet), and we
# want to use standard offset pagination.
module Gitlab
  module Graphql
    module Pagination
      class OffsetActiveRecordRelationConnection < GraphQL::Pagination::ActiveRecordRelationConnection
        prepend ::Gitlab::Graphql::ConnectionRedaction
        include ::Gitlab::Graphql::ConnectionCollectionMethods
      end
    end
  end
end