We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b324225 commit 01b1706Copy full SHA for 01b1706
core/pagination.md
@@ -542,3 +542,15 @@ class BookRepository extends ServiceEntityRepository
542
}
543
544
```
545
+
546
+## Pagination for Customer Data Providers
547
548
+If you're using a customer Data Providers, and not the Doctrine ORM, ODM or
549
+ElasticSearch provides, then if you want your results to be paginated then
550
+you'll need to return an instance of a
551
+`\ApiPlatform\Core\DataProvider\PartialPaginatorInterface` or
552
+`\ApiPlatform\Core\DataProvider\PaginatorInterface`. A few existing classes are
553
+provided to get you started with these…
554
555
+* `\ApiPlatform\Core\DataProvider\ArrayPaginator`
556
+* `\ApiPlatform\Core\DataProvider\TraversablePaginator`
0 commit comments