Log in
Model

Context

Magento\GraphQlServer\Model\Context\Context

What it does

This class serves as a context container for GraphQL requests in Magento 2.

Developers use it to store and retrieve request-specific data (like customer information, store context, or authorization details) that needs to be passed between GraphQL resolvers during query execution.

It implements the ContextInterface to ensure compatibility with Magento's GraphQL framework.

Public Methods

  • getValue()