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.
11 lines
213 B
Ruby
11 lines
213 B
Ruby
module Resolvers
|
|
class ProjectPipelinesResolver < BaseResolver
|
|
include ResolvesPipelines
|
|
|
|
alias_method :project, :object
|
|
|
|
def resolve(**args)
|
|
resolve_pipelines(project, args)
|
|
end
|
|
end
|
|
end
|