Product Option Value
Requires access scope.
A specific value for a , such as "Red" or "Blue" for a "Color" option. Option values combine across different options to create objects.
Each value can include a visual swatch that displays a color or image. The field returns the variant that combines this option value with the lowest-position values for all other options. This is useful for building product selection interfaces.
Learn more about Shopify's product model.
Anchor to FieldsFields
- firstSelectableVariant (ProductVariant)
- id (ID!)
- name (String!)
- swatch (ProductOptionValueSwatch)
- Anchor to firstSelectableVariantfirst•Product
Selectable Variant Variant The product variant that combines this option value with the lowest-position option values for all other options.
This field will always return a variant, provided a variant including this option value exists.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the product option value.
- Anchor to swatchswatch•Product
Option Value Swatch The swatch of the product option value.