Skip to Content

ProductOptionValue

A value for a product option, such as a specific size or color.

Type Definition

type ProductOptionValue { handle: String sortOrder: Int title: String selected: Boolean taxonomyValueId: Int taxonomyValue: ProductTaxonomyValue variant: ProductVariant image: Image }

Fields

FieldTypeDescription
handleStringReturns the handle.
sortOrderIntReturns the sort order.
titleStringReturns the title.
selectedBooleanReturns whether this value is selected.
taxonomyValueIdIntReturns the taxonomy value ID.
taxonomyValueProductTaxonomyValueReturns the taxonomy value for this value.
variantProductVariantReturns the variant for this value.
imageImageReturns the image for this value.

Relationships

ProductOptionValue represents a selectable value within a product option. It connects to ProductTaxonomyValue to provide taxonomic classification, to ProductVariant to indicate which variant corresponds to this option value, and to Image to display visual representations of the option value. This type is used within ProductOption to represent available selections and within ProductVariantOption to indicate the selected value for a specific variant.

Example

{ handle sortOrder title selected taxonomyValueId taxonomyValue { id name } variant { id title } image { url alt } }

Implements

None