Development discussions around Shopify APIs
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?
User | RANK |
---|---|
48 | |
11 | |
8 | |
6 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023