Remove quantityAvailable from product variant query

The Storefront API only returns ProductVariant.quantityAvailable when the
app has the unauthenticated_read_product_inventory scope, and nothing in
the template reads the field — availableForSale already drives stock state.

Also bumps the example Shopify API version to 2026-10 and drops the pinned
packageManager field from package.json.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FaxyZTjAyd7UXK8xpQpF7o
This commit is contained in:
Rami Bitar
2026-08-15 16:49:20 -04:00
co-authored by Claude Opus 5
parent 0263a59c6a
commit e6aa350bbd
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -49,7 +49,6 @@ export const ProductFragment = gql(`
id
title
availableForSale
quantityAvailable
selectedOptions {
name
value