Log in
Model

GraphQlContext

Magento\GraphQl\Model\Backpressure\GraphQlContext

What it does

This class represents the context information for GraphQL requests in Magento's backpressure system, which helps prevent server overload by rate-limiting requests.

Developers use this to identify and track GraphQL request origins, including the requester's identity, identity type, and the specific resolver being executed.

It's primarily used internally by Magento's backpressure mechanism to apply appropriate rate limiting and request throttling for GraphQL API calls.

Public Methods

  • getRequest()
  • getIdentity()
  • getIdentityType()
  • getTypeId()
  • getResolverClass()