OBJECT

Product

Represents an individual item for sale in the storefront.

link GraphQL Schema definition

  • type Product implements Node {
  • # The ID of the object.
  • id: ID!
  • publicationDate: Date
  • isPublished: Boolean!
  • seoTitle: String
  • seoDescription: String
  • productType: ProductType!
  • name: String!
  • description: String!
  • descriptionJson: JSONString!
  • category: Category!
  • updatedAt: DateTime
  • chargeTaxes: Boolean!
  • weight: Weight
  • # List of privately stored metadata namespaces.
  • privateMeta: [MetaStore]!
  • # List of publicly stored metadata namespaces.
  • meta: [MetaStore]!
  • # The storefront URL for the product.
  • url: String!
  • # The main thumbnail for a product.
  • #
  • # Arguments
  • # size:
  • thumbnail(size: Int): Image
  • # Informs about product's availability in the storefront, current
  • # price and discounts.
  • availability: ProductPricingInfo @deprecated( reason: "DEPRECATED: Will be removed in Saleor 2.10, Has been renamed to `pricing`." )
  • # Lists the storefront product's pricing, the current price and
  • # discounts, only meant for displaying.
  • pricing: ProductPricingInfo
  • # Whether the product is in stock and visible or not.
  • isAvailable: Boolean
  • # The product's default base price.
  • basePrice: Money
  • # The product's default base price.
  • price: Money @deprecated( reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by `basePrice`" )
  • # The price of the cheapest variant (including discounts).
  • minimalVariantPrice: Money
  • # A type of tax. Assigned by enabled tax gateway
  • taxType: TaxType
  • # List of attributes assigned to this product.
  • attributes: [SelectedAttribute!]!
  • purchaseCost: MoneyRange
  • margin: Margin
  • # Get a single product image by ID.
  • #
  • # Arguments
  • # id:
  • imageById(id: ID): ProductImage
  • # List of variants for the product.
  • variants: [ProductVariant]
  • # List of images for the product.
  • images: [ProductImage]
  • # List of collections for the product.
  • collections: [Collection]
  • # Returns translated Product fields for the given language code.
  • #
  • # Arguments
  • # languageCode:
  • translation(languageCode: LanguageCodeEnum!): ProductTranslation
  • # The slug of a product.
  • slug: String!
  • }