# Copyright © Magento, Inc. All rights reserved. # See COPYING.txt for license details. interface ProductInterface { only_x_left_in_stock: Float @doc(description: "The value assigned to the Only X Left Threshold option in the Admin.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\OnlyXLeftInStockResolver") stock_status: ProductStockStatus @doc(description: "The stock status of the product.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\StockStatusProvider") } enum ProductStockStatus @doc(description: "States whether a product stock status is in stock or out of stock.") { IN_STOCK OUT_OF_STOCK }