Product
ObjectFields returned for product.
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 rich description of the product.
- ProductEventConnection!
events Retrieves a paginated list of events for a specific product.
- ProductVariant
heroVariant The featured (hero) variant for this product.
- ID!
id The unique identifier for 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.
- ProductPublicationConnection!
publications A list of publications associated with the product.
- Long!
publicationsCount The number of channel publications that are associated with the product.
- String!
slug The slug of the product, which is a URL-friendly identifier.
- ProductStatus!
status The status of the product.
Possible enum valuesACTIVEThe product is available through published catalog experiences.
DRAFTThe product is retained as a draft and is not published.
- [String!]!
A list of tags applied to the product.
- Int!
totalInventoryCount The number of inventory entries that are associated with the product.
- [Translation!]!
translations A list of translations associated with the product.
- ProductVariantConnection!
variants A list of variants associated with 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
Retrieves a single product by its ID.
Retrieves a paged list of products with optional filtering, sorting, and full-text search.
Mutations
Adds attribute assignments to a product.
Removes attribute assignments from a product.
Reorders attribute assignments for a product.
Creates a new product with the specified details.
Deletes a product by its ID.
productPublishDeprecatedAdds publications to a product.
Deprecated: Use publishablePublish or publishableBulkPublish instead.productUnpublishDeprecatedRemoves publications from a product.
Deprecated: Use publishablePublish or publishableBulkPublish instead.Updates an existing product identified by its ID.
productVariantPublishDeprecatedAdds or updates publications for a single product variant.
Deprecated: Use publishablePublish or publishableBulkPublish instead.productVariantUnpublishDeprecatedRemoves publications from a single product variant.
Deprecated: Use publishablePublish or publishableBulkPublish instead.Creates multiple variants for a product in bulk.
Deletes multiple variants from a product in bulk.
Updates multiple variants of a product in bulk.
Adds media items to one or more product variants.
Removes media items from one or more product variants.
Reorders media items within one or more product variants.
Reorders product variants for a given product by applying the specified sort order updates.