Model
AddStoreInfoToContext
Magento\StoreGraphQl\Model\Context\AddStoreInfoToContext
What it does
This class adds store information to the GraphQL query context, making the current store available throughout GraphQL request processing.
Developers use this to ensure GraphQL queries have access to store-specific data like store ID, code, and configuration when resolving fields that depend on the current store scope.
Public Methods
- execute()