New barcode field on the Storefront API ProductVariant object
API
Effective January 01, 2022
As of GraphQL Storefront API version 2022-01, the ProductVariant
object has a new field: barcode
. This field returns the barcode value (ISBN, UPC, GTIN, etc.) associated with the variant.
Learn more about the barcode
field on Shopify.dev.