Product
A product in the store, including details, variants, images, pricing, and reviews.
Type Definition
type Product {
handle: String
seoDescription: String
seoTitle: String
seoKeywords: String
id: Int
combinedListing: CombinedListing
firstAvailableVariant: ProductVariant
hasOnlyDefaultVariant: Boolean
variants: [ProductVariant]
options: [String]
optionsWithValues: [ProductOption]
optionsByHandle: [ProductOption]
defaultOrSelectedVariant: ProductVariant
tags: [String]
customFields: [CustomField]
inPreview: Boolean
isAvailable: Boolean
isDirectlyBuyable: Boolean
title: String
manufacturer: Manufacturer
shortDescription: String
description: String
images: [Image]
videos: [Video]
featuredImage: Image
featuredVideo: Video
compatible: [Product]
similar: [Product]
related: [Product]
deliverer: Deliverer
productGroups: [ProductGroup]
returnPolicyTimeLimit: Int
rating: Float
reviewCount: Int
maxRating: Int
reviews: [Review]
attachments: [Attachment]
reviewsAreEnabled: Boolean
reviewsRequireAccount: Boolean
reviewsRequirePurchase: Boolean
reviewsRequireApproval: Boolean
taxonomy: ProductTaxonomy
createdAt: String
updatedAt: String
rate: String
inCustomersWishlist: String
customerHasReviewed: String
customerCanReview: String
customerHasPurchased: String
metafields: [Metafield]!
metafield: Metafield
}Fields
Relationships
The Product type represents a store product and maintains relationships with multiple other types in the schema. It references variants through the variants field and firstAvailableVariant field, which return ProductVariant objects. Product images and videos are accessible through the images, videos, featuredImage, and featuredVideo fields, which return Image and Video objects respectively.
Products can be grouped through the productGroups field, returning ProductGroup objects. Product reviews are available through the reviews field, returning Review objects. Related products are accessible through compatible, similar, and related fields which return other Product objects. Additional relationships include manufacturer (Manufacturer), deliverer (Deliverer), and taxonomy (ProductTaxonomy). Product options are returned through optionsWithValues and optionsByHandle fields as ProductOption objects, and custom fields are accessible through the customFields field as CustomField objects.
Example
{
product(id: 12345) {
id
handle
title
seoTitle
seoDescription
description
shortDescription
rating
reviewCount
isAvailable
isDirectlyBuyable
featuredImage {
src
alt
}
variants {
id
title
price
}
optionsWithValues {
name
values
}
manufacturer {
name
}
reviews {
title
rating
content
}
taxonomy {
categoryHandle
}
}
}Implements
This type does not implement any interfaces.