how to get All files with a query using graphql?

how to get All files with a query using graphql?

Juanestban
Shopify Partner
8 2 1

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

Juanestban_0-1699048686115.png

 

Reply 1 (1)

friendscottn
Shopify Partner
24 3 13

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.