Model
ProductsCount
Magento\CatalogGraphQl\Model\Resolver\Category\ProductsCount
What it does
This resolver retrieves the count of visible products within a specific category for GraphQL queries.
It applies visibility filters to ensure only products visible on the site are counted.
Developers use this when building GraphQL category queries that need to display the total number of available products in a category.
Public Methods
- resolve()