Pagination in custom Action based on repository result
See original GitHub issueHi.
I have my custom action to get data based on repository. I want to use api-platform pagination, how to do that. Now repository gives me all results.
public function getSomeData(){
$em = $this->getEntityManager();
$queryBuilder = $em->createQueryBuilder();
....
return $queryBuilder->getQuery()->getResult();
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
symfony - Paginator with ApiPlatform on custom repository
Edit: I made a repo showing how to use api platform on raw data (with a csv file) and how filter it, sort...
Read more >Pagination guidelines - GitLab Docs
Offset-based pagination is the easiest way to paginate over records, however, it does not scale well for large database tables.
Read more >Paginate search source results
If adding pagination to a simple search source, set Paginate results on the search source record to true. However, if adding pagination to ......
Read more >How to Build a Custom Pagination Component in React
totalCount: represents the total count of data available from the source. · currentPage: represents the current active page. · pageSize: ...
Read more >Paging in ASP.NET Core Web API - Code Maze
Paging refers to getting partial results from an API. ... FindAll() method is just a method from a Base Repository class that return...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Using the PaginationExtension or returning a doctrine paginator does not return hydra:view for me, any idea how to handle this?
Please open another issue for the
hydra:view
key.