Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
28 3 18

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.