Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I was hoping to use the expanded unoptimized Shopify buy SDK to get product variants from the a list of variant IDs. More specifically I want to get the inventory quantity for each variant so I can ensure any variants in the cart are still in stock (2 of one variant in the cart to check there are 2 left of that variant).
Was hoping to use this GraphQL here with the buy SDK.
But also maybe there's a better way of getting the inventory?
Thanks 🙂