Model

StockStatusProvider

Magento\CatalogInventoryGraphQl\Model\Resolver\StockStatusProvider

What it does

This GraphQL resolver determines and returns the stock status (IN_STOCK or OUT_OF_STOCK) for products in GraphQL queries.

Developers use this class when implementing GraphQL endpoints that need to display product availability, including special handling for configurable products (checking variant stock) and bundle products (checking all bundle option stocks).

Public Methods

  • resolve()