Model
ContextParameters
Magento\GraphQl\Model\Query\ContextParameters
What it does
This class stores context parameters for GraphQL queries, including user authentication information (user type and ID) and custom extension attributes.
Developers use this to pass contextual data through the GraphQL request lifecycle, such as identifying the current user or adding custom context data that resolvers can access.
Public Methods
- setUserType()
- getUserType()
- setUserId()
- getUserId()
- addExtensionAttribute()
- getExtensionAttributesData()