A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I know that I can get multiple variants under a product. What about variants from different products?
I need to do so to generate a custom product for bulk orders. Now, I can only use for loop to get variants one by one, which is very slow. And I cannot get more variants say 40 to 60.
Go to the solution
This is an accepted solution.
Yes, here it is: https://shopify.dev/api/admin-graphql/2021-10/queries/productVariants#examples-Get_multiple_product_...
Not sure if it's added recently or I omitted this part. Anyway, it works.
View solution in original post