How to get All files with a query using graphql?

I’m starting use shopify App with graphql, but still I don’t know how can get All files without use pagination or

how can I use pagination with graphql

can help me guys with some example using one or both cases?

this is the way that I’m working yet

Unless you only have a very small number of files you’re going to need to use pagination. This article provides a good overview of paging the graphql api:

https://shopify.dev/docs/api/usage/pagination-graphql

Basically use first to indicate your page size. Use after get the next page using the previous request’s endCursor value.

2 Likes