Hey guys,
I'm migrating my 'products' request from REST to GraphQL.
While in REST I used to get all the products' images in the response, in GraphQL I need to specify the amount of media (first/last).
Is there a way to get all products' media in GraphQL without exceeding query cost of 1000, and without paginating on media in each product?
Hi, there is no way to get all in one request.
You need to paginate.
Take a look at this, it uses Python + GraphQL + Pagination to get orders, you can convert the GraphQL query to get Products instead.
https://github.com/mardambey/shopify-python-graphql-pagination
User | Count |
---|---|
11 | |
11 | |
6 | |
5 | |
4 |