OBJECT

Variant

A variant - a specific instance of a general product, that represents an inventory item with a quantity and concrete size, color, weight, etc.

link GraphQL Schema definition

  • type Variant {
  • id: ID!
  • # The product this variant is a part of
  • product: Product!
  • # The number of available units of this variant
  • quantity: Int!
  • # The color of the variant
  • color: String
  • # The size of the variant
  • size: String
  • # The weight of the variant, measured in ounces
  • weightOunces: Float!
  • # The price of the variant
  • price: Float
  • # If nonzero, the sale price of the variant
  • salePrice: Float
  • # If present, the price of shipping this variant
  • shippingPrice: Float
  • # If present, the price of the variant if sold via wholesale
  • wholesalePrice: Float
  • # Line items of orders that this variant has appeared in
  • orderLineItems: [OrderLineItem!]!
  • # Shopping cart items where this variant is currently held
  • cartItems: [CartItem!]!
  • # Waitlist items for this variant
  • waitlistItems: [WaitlistItem!]!
  • }