Shopify's Storefront GraphQL API (2026-07) now exposes a `viewKey` field on the `CartLine` type. Previously, `viewKey` was input-only — you could send it in `cartLinesUpdate` and `cartLinesRemove` mutations, but the response only returned a UUID `id` with no way to map back. Now you can query `viewKey` directly alongside `id` on cart line nodes, making it straightforward to correlate returned cart lines with the view keys your Liquid storefront renders. Existing UUID-based workflows remain unaffected.
238 Impressions