Log in
Model

QueryProcessor

Magento\CatalogGraphQl\Model\QueryProcessor

What it does

This class prepares and configures search query objects for GraphQL catalog searches in Magento 2.

It takes raw search text input, validates and truncates it against maximum query length limits, and creates a properly configured Query object with the appropriate store context.

Developers use this when implementing GraphQL product search functionality to ensure search queries are properly formatted and scoped to the correct store.

Public Methods

  • prepare()