How to get all product variants metafields

Shopify Partner
835 70 183

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 --> 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.

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./