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 |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022