OBJECT

ProductVariant

A product variant represents a different version of a product, such as differing sizes or differing colors.

link GraphQL Schema definition

  • type ProductVariant implements Node {
  • # Indicates if the product variant is in stock.
  • available: Boolean
  • id: ID!
  • # Image associated with the product variant.
  • #
  • # Arguments
  • # maxWidth: Image width in pixels between 1 and 2048
  • # maxHeight: Image height in pixels between 1 and 2048
  • # crop: If specified, crop the image keeping the specified region
  • # scale: Image size multiplier retina displays. Must be between 1
  • # and 3
  • image(maxWidth: Int, maxHeight: Int, crop: CropRegion, scale: Int): Image
  • # The product variant’s price.
  • price: Money!
  • # The product object that the product variant belongs to.
  • product: Product!
  • # List of product options applied to the variant.
  • selectedOptions: [SelectedOption!]!
  • # The product variant’s title.
  • title: String!
  • # The weight of the product variant in the unit system specified with
  • # `weight_unit`.
  • weight: Float
  • # Unit of measurement for weight.
  • weightUnit: WeightUnit!
  • }