Model
StockStatusProvider
Magento\InventoryGraphQl\Model\Resolver\StockStatusProvider
What it does
This GraphQL resolver determines and returns the stock status (IN_STOCK or OUT_OF_STOCK) for products in the GraphQL API.
It handles special logic for bundle products by checking their buy state, and for other products it queries the inventory system based on the current website's stock ID to determine if products are salable.
Public Methods
- resolve()