I’m trying to get pagination working in my React application. I’ve setup Apollo Server but now I need to get pagination working. I’m looking to use offset-based pagination.
I have a couple of questions:
When implementing limit on the server, do I use it to limit the results returned from the database or should I return the full set of matching results and then limit the results returned from the resolver?
How can I return the total number of results matching a search query so that I can use it in pagination on the client-side?
Do I need to include the offsetLimitPagination in the field policy?