Bulk operation -- multiple products

J-W
New Member
2 0 0

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?

 

 

 

Replies 0 (0)