2020-03-02 12:07:57 +00:00
|
|
|
# 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-03-19 18:09:17 +00:00
|
|
|
class OffsetActiveRecordRelationConnection < GraphQL::Pagination::ActiveRecordRelationConnection
|
2020-03-02 12:07:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|