GraphQL Pagination

Is there a way to paginate results?

Let’s say I have the following schema and there are 10 000 items associated with the tag. I don’t want to get all of them, but for example only the first 100. Is there a way to paginate the results with graphql? Something like they show here:

type Tag {
items: [Item]

Hi @Leon,

There is, actually. We have a whole section in our docs dedicated to it. You can use _size to limit how many records you get back from a query (the default is 50), and the cursor that’s returned allows you to set before and after attributes in the data that’s returned so you can page through the results. The examples in the docs will walk you through making use of it.