Log in
Model

Context

Magento\GraphQl\Model\Query\Context

What it does

This class serves as a context container for GraphQL queries, storing user authentication information (user type and user ID) and extension attributes.

Developers use this class to access user context and custom data during GraphQL query execution, enabling modules to share contextual information through extension attributes following GraphQL specifications.

Public Methods

  • getUserType()
  • getUserId()
  • getExtensionAttributes()