Skip to main content

PublicVariantMetrics

Metrics for a PublicVariant, including inventory quantity, status, and supplierVariant counts

type PublicVariantMetrics {
countOfInStockSupplierVariants: Int!
countOfSupplierVariants: Int!
inventoryQuantity: Int!
inventoryStatus: InventoryStatus!
}

Fields

PublicVariantMetrics.countOfInStockSupplierVariants ● Int! non-null scalar

PublicVariantMetrics.countOfSupplierVariants ● Int! non-null scalar

PublicVariantMetrics.inventoryQuantity ● Int! non-null scalar

This is mostly useful for determining whether a certain quantity can be added to the cart. For BOTTOMLESS InventoryPolicy, a value of 10,000,000 is added here.

PublicVariantMetrics.inventoryStatus ● InventoryStatus! non-null enum

If any SupplierVariant is in stock, this is in stock.

Member of

PublicVariant object