@@ -27,7 +27,7 @@ Or install it yourself as:
2727
2828``` ruby
2929class UserQuery < Jsonapi ::QueryBuilder ::BaseQuery
30- # # pagination
30+ # # pagination
3131 paginator Jsonapi ::QueryBuilder ::Paginator ::Pagy # default paginator
3232
3333 # # sorting
@@ -62,9 +62,9 @@ pass the scoped collection to the `Jsonapi::QueryBuilder::BaseQuery` object.
6262### Pagination
6363
6464Pagination support is configurable using the ` paginator ` method to define the paginator. It defaults to the ` Pagy `
65- paginator, a lightweight and fast paginator. Other paginators currently supported are ` Kaminari ` and an implementation
66- of keyset pagination. Before using these paginators we need to explicitly require the gems in our Gemfile and the
67- paginator file in question. Additionally one can implement it's own paginator by inheriting
65+ paginator, a lightweight and fast paginator. Other paginators currently supported are ` Kaminari ` , ` PagyCountless ` and
66+ an implementation of keyset pagination. Before using these paginators we need to explicitly require the gems in our
67+ Gemfile and the paginator file in question. Additionally one can implement it's own paginator by inheriting
6868from ` Jsonapi::QueryBuilder::Paginator::BasePaginator ` . The minimum required implementation is a ` #paginate ` method that
6969receives page params and returns a page of the collection. It can return the pagination details as the second item of
7070the returned array, that can be used in the serializer for pagination metadata.
@@ -85,6 +85,14 @@ require "jsonapi/query_builder/paginator/keyset"
8585paginator Jsonapi ::QueryBuilder ::Paginator ::Keyset
8686```
8787
88+ #### Using the Pagy Countless Paginator
89+
90+ ``` ruby
91+ require " jsonapi/query_builder/paginator/pagy_countless"
92+
93+ paginator Jsonapi ::QueryBuilder ::Paginator ::PagyCountless
94+ ```
95+
8896### Sorting
8997
9098#### Ensuring deterministic results
0 commit comments