Interface
ContextParametersInterface
Magento\GraphQl\Model\Query\ContextParametersInterface
What it does
This interface defines a contract for managing context parameters in GraphQL queries, allowing developers to store and retrieve user information (user ID and type) and custom extension attributes.
Developers would implement or use this interface when building GraphQL resolvers that need to access authenticated user data or pass custom contextual information between different parts of a GraphQL request processing chain.
Public Methods
- setUserType()
- getUserType()
- setUserId()
- getUserId()
- addExtensionAttribute()
- getExtensionAttributesData()