04b046587f
This adds Keyset pagination to GraphQL lists. PoC for that is pipelines on merge requests and projects. When paginating a list, the base-64 encoded id of the ordering field (in most cases the primary key) can be passed in the `before` or `after` GraphQL argument.
12 lines
286 B
Ruby
12 lines
286 B
Ruby
module Gitlab
|
|
module Graphql
|
|
module Connections
|
|
def self.use(_schema)
|
|
GraphQL::Relay::BaseConnection.register_connection_implementation(
|
|
ActiveRecord::Relation,
|
|
Gitlab::Graphql::Connections::KeysetConnection
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|