Log in
Factory

SearchResultFactory

Magento\CatalogGraphQl\Model\Resolver\Products\SearchResultFactory

What it does

This factory class creates SearchResult objects for GraphQL product search queries in Magento 2.

Developers use this when implementing GraphQL resolvers that need to return product search results with pagination and total count information.

It encapsulates the instantiation logic for SearchResult objects, making them easier to create throughout the CatalogGraphQl module.

Public Methods

  • create()