2020-04-08 14:13:33 +05:30
|
|
|
# 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
|
2020-04-22 19:07:51 +05:30
|
|
|
class OffsetActiveRecordRelationConnection < GraphQL::Pagination::ActiveRecordRelationConnection
|
2021-02-22 17:27:13 +05:30
|
|
|
prepend ::Gitlab::Graphql::ConnectionRedaction
|
|
|
|
include ::Gitlab::Graphql::ConnectionCollectionMethods
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|