Product
ObjectRepresents a product in Thor Commerce, encapsulating all information required to display and manage items across storefronts and sales channels. Each product includes core details such as title, rich description, pricing, media assets, and customizable options (e.g., size, color). Variants enable multiple versions of a product with distinct attributes and prices. You can add or update images, videos, and other media to enrich the customer experience. Products can be organized into categories for intuitive browsing and discovery.
Fields
- [AttributeAssignment!]!
attributeAssignments A list of attributes associated with the product.
- CategoryConnection!
categories A list of categories associated with the product.
- CollectionConnection!
collections A list of collections associated with the product.
- String
description The description of the product.
- ProductVariant
heroVariant Gets the hero variant for the product, the hero variant is the first variant of the product, or the specific variant chosen for the channel
- ID!
id The unique identifier of the product.
- [MetadataItem!]!
metadata Custom metadata key/value pairs for the product.
- [Metafield!]!
metafields A list of metafields associated with the product. If a metafield definition has no explicit assignment for this product, the definition’s default value is returned.
- String!
name The name of the product.
- ProductPriceRange
priceRange The price range of the product, which includes the minimum and maximum prices across all variants.
- String!
slug The slug of the product, which is a URL-friendly identifier.
- [String!]!
The tags associated with the product.
- ProductVariantConnection!
variants The variants of the product.
- Long!
variantsCount The number of variants that are associated with the product and published in the current channel.
- String
vendor The vendor of the product.
Queries
Gets a single
Productby its ID or slug.Returns a list of products.