How to get all product variants metafields

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.

2 Likes