How to get all product variants metafields

Solved
Highlighted
Shopify Partner
528 38 109

This is an accepted solution.

If you need to retrieve a large amount of records using GraphQL, it's usually best to try bulk operations --> https://shopify.dev/tutorials/perform-bulk-operations-with-admin-api. I did a test of this, and pulled over 49K products using this mechanism. And the results were available in 11 minutes. Using the REST API it would've taken awhile to iterate through each paginated query response.

1 Like
Highlighted
Tourist
6 0 0

@Greg_Kujawa  wow amazing, 

Actualy until now I've just know these thing, 

I tested on my store with 46k products and get product info, product seo, product metafields, variant info and variant metafields.

The result so amazing It's take about 29 minutes with jsonline file (45mb).

Thanks you so much! That is everything I need./ 

0 Likes