A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Say I wanted to retrieve a set of products by id. Some sample code from the API docs suggests this approach using aliases ("glasses" and "shoes"):
{
glasses: product(id: "gid://shopify/Product/108828309") {
title
description
}
shoes: product(id: "gid://shopify/Product/910489600") {
title
description
}
}
But if my list of products were large, with connections, this query might be quite expensive and fail.
So I tried using a bulk operation instead. With connections to variants I only get the variant data lines in the JSONL, no product data.
Has anyone tried queries of this type, with connections, in bulk ops successfully?