Model

MinSaleQtyResolver

Magento\CatalogInventoryGraphQl\Model\Resolver\MinSaleQtyResolver

What it does

This GraphQL resolver retrieves the minimum sale quantity allowed for a product's stock item.

Developers use this class when implementing GraphQL queries that need to display the minimum number of units a customer must purchase for a product, which is useful for enforcing quantity restrictions in the storefront.

Public Methods

  • resolve()