import { ShopifyProductOption } from '@daffodil/driver/shopify'
A customizable product attribute that customers select when purchasing, such as "Size", "Color", or "Material". Each option has a name and a set of ProductOptionValue objects representing the available choices.
Different combinations of option values create distinct ProductVariant objects. Option values can include visual swatches that display colors or images to help customers make selections. Option names have a 255-character limit.
Learn more about Shopify's product model.
interface ShopifyProductOption {
__typename: "ProductOption"
id: string
name: string
optionValues: ShopifyProductOptionValue[]
values: string[]
}
__typename "ProductOption" |
|---|
id string |
|---|
A globally-unique ID. |
name string |
|---|
The product option’s name. |
optionValues ShopifyProductOptionValue[] |
|---|
The corresponding option value to the product option. |
values string[] |
|---|
The corresponding value to the product option name. |