Skip to Content

ProductOption

Describes a product option.

Type Definition

type ProductOption { isForCombinedListing: Boolean handle: String sortOrder: Int title: String taxonomyAttributeId: Int taxonomyAttributeHandle: String taxonomyAttribute: ProductTaxonomyAttribute values: [ProductOptionValue] selectedValue: ProductOptionValue }

Fields

FieldTypeDescription
isForCombinedListingBooleanReturns whether this option is for a combined listing.
handleStringReturns the handle.
sortOrderIntReturns the sort order.
titleStringReturns the title.
taxonomyAttributeIdIntReturns the taxonomy attribute ID.
taxonomyAttributeHandleStringReturns the taxonomy attribute handle.
taxonomyAttributeProductTaxonomyAttributeReturns the related taxonomy attribute for this option.
values[ProductOptionValue]Returns the values for this option.
selectedValueProductOptionValueReturns the selected value for this option.

Relationships

ProductOption represents a configurable option available for a product. It maintains relationships with ProductTaxonomyAttribute, which provides standardized attribute information, and ProductOptionValue, which represents the individual values available for selection within this option. This type is used by ProductVariantOption to provide option details for product variants.

Example

{ isForCombinedListing handle sortOrder title taxonomyAttributeId taxonomyAttributeHandle taxonomyAttribute { id handle } values { id title } selectedValue { id title } }

Implements

None