Skip to Content

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

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 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.