ProductOption
A selectable product option, such as size or color.
Type Definition
type ProductOption {
isForCombinedListing: Boolean
handle: String
sortOrder: Int
title: String
taxonomyAttributeId: Int
taxonomyAttributeHandle: String
taxonomyAttribute: ProductTaxonomyAttribute
values: [ProductOptionValue]
selectedValue: ProductOptionValue
}Fields
Relationships
ProductOption represents a configurable attribute of a product. It maintains relationships with ProductTaxonomyAttribute, which provides structured taxonomy information about the option, and ProductOptionValue, which represents the individual selectable values available for this option. The selectedValue field indicates which value from the values list is currently chosen. ProductOption is used by ProductVariantOption to associate options with specific product variants.
Example
{
isForCombinedListing
handle
sortOrder
title
taxonomyAttributeId
taxonomyAttributeHandle
taxonomyAttribute {
id
}
values {
id
}
selectedValue {
id
}
}Implements
None