ProductOptionValue
Describes a product option value, representing a selectable variant option within a product’s option set.
Type Definition
type ProductOptionValue {
handle: String
sortOrder: Int
title: String
selected: Boolean
taxonomyValueId: Int
taxonomyValue: ProductTaxonomyValue
variant: ProductVariant
image: Image
}Fields
| Field | Type | Description |
|---|---|---|
| handle | String | Returns the handle. |
| sortOrder | Int | Returns the sort order. |
| title | String | Returns the title. |
| selected | Boolean | Returns whether this value is selected. |
| taxonomyValueId | Int | Returns the taxonomy value ID. |
| taxonomyValue | ProductTaxonomyValue | Returns the taxonomy value for this value. |
| variant | ProductVariant | Returns the variant for this value. |
| image | Image | Returns the image for this value. |
Relationships
ProductOptionValue represents a single selectable value within a product option. It maintains relationships with ProductTaxonomyValue for taxonomy classification, ProductVariant for product variant information, and Image for visual representation of the option value. This type is used by ProductOption’s selectedValue field and ProductVariantOption’s value field.
Example
{
productOptionValue(id: 12345) {
handle
sortOrder
title
selected
taxonomyValueId
taxonomyValue {
id
name
}
variant {
id
title
}
image {
url
alt
}
}
}Implements
This type does not implement any interfaces.