Added
Complexity::calculate()to calculate the complexity of the operation that execution selects GHSA-7xh5-44rv-4vr4maxQueryComplexityexecution option ofGraphQL::executeQuery(),GraphQL::promiseToExecute()andStandardServerGHSA-7xh5-44rv-4vr4
Changed
GraphQL::executeQuery(),GraphQL::promiseToExecute()andStandardServerenforce theQueryComplexityrule's limit after validation and only for the executed operation, so operations that do not run no longer reject the document GHSA-7xh5-44rv-4vr4
Deprecated
QueryComplexityvalidation rule, use themaxQueryComplexityexecution option orComplexity::calculate()GHSA-7xh5-44rv-4vr4
Fixed
- Avoid quadratic validation cost in
QueryComplexityfrom re-coercing request variables for every operation, forGraphQL::executeQuery(),GraphQL::promiseToExecute()andStandardServer; directDocumentValidator::validate()callers should switch toComplexity::calculate()GHSA-7xh5-44rv-4vr4