GraphQL Pagination

In this lesson, we will be introducing the GraphQL feature: pagination.

Why Do we Need Pagination?

This is where we return to the concept of pagination mentioned in the previous chapter. Imagine we have a list of repositories in our GitHub organization, but we only want to retrieve a few of them to display on our UI. It could take ages to fetch a list of repositories from a large organization. In GraphQL, you can request paginated data by providing arguments to a list field, such as an argument that specifies how many items you are expecting from the list.

Get hands-on with 1200+ tech skills courses.