Using Template Expressions for Request and Configuration Control
request.auth.claims
).request.header.Get("Content-Type")
).request
object is a read-only entity that provides details about the incoming client request. It is accessible at all times during the lifecycle of the request.
Available Fields:
request.method
request.url.host
request.url.path
request.url.port
request.trace.sampled
request.error
request.operation
request.operation.name
request.operation.type
(possible values: mutation
or query
)request.operation.hash
request.client
request.client.name
request.client.version
request.header.Get('Content-Type')
– Header retrieval is case-insensitive.raw.body
) is only included in the expression context if at least one expression explicitly references it.
Available Fields:
request.body.raw
auth
object contains authentication-related information for the request. It becomes available after authentication is complete.
Available Fields:
request.auth
request.auth.isAuthenticated
request.auth.type
request.auth.claims
request.auth.scopes
subgraph.id
(string): The unique identifier of the subgraphsubgraph.name
(string): The name of the subgraphsubgraph.request
(SubgraphRequest): Contains information about the subgraph requestsubgraph.request.error
(error): Any error that occurred during the subgraph requestsubgraph.request.clientTrace
(ClientTrace): Contains tracing information about the client connectionsubgraph.request.clientTrace.connAcquireDuration
(float64): The duration in seconds it took to acquire the connection to the subgraphsubgraph
identifier. For example, you can access the subgraph name using subgraph.name
or check for errors using subgraph.request.error
.