Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi, I'm using the Storefront API to show products in my client's shop. For each product, I'm fetching the images like this:
products(first: 100) {
edges {
node {
id,
title,
images(first: 5) {
edges {
node {
id
width
height
altText
}
}
}
}
}
}
Now that I have the image's IDs, how do I actually show them with an `<img>` tag?
Is there a certain URL structure I can use, e.g. images.shopify.com/{id}.jpg or something like that?
Thanks for your help!