queryComplexity
Get the complexity of a query.
Deprecation
The 'queryComplexity' field is deprecated.The query complexity can be found by using the Query Complexity tab in GraphiQL or by making the query with the `X-Kraken-Query-Complexity` header set.
- Marked as deprecated on 2026-10-01.
- Scheduled for removal on or after 2026-11-01.
Arguments
Query and relevant variables required to calculate the complexity.
Returns
QueryComplexityOutputTypeExamples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query QueryComplexity($input: QueryComplexityInputType!) {
queryComplexity(input: $input) {
complexityValue
}
}
Variables
{
"input": QueryComplexityInputType
}
Response
{
"data": {
"queryComplexity": {
"complexityValue": 78
}
}
}