Model
StockItemService
Magento\CatalogInventoryGraphQl\Model\StockItemService
What it does
This service retrieves stock/inventory information for products in GraphQL queries.
Developers use it to get inventory data like quantity and availability status for products, with special handling for configurable products that need to be reloaded.
It acts as a bridge between GraphQL resolvers and Magento's legacy inventory system.
Public Methods
- getStockItem()