Repository navigation
v15.51.0
Added
Complexity::calculate()to calculate the complexity of the operation that execution selects https://github.com/webonyx/graphql-php/security/advisories/GHSA-7xh5-44rv-4vr4maxQueryComplexityexecution option ofGraphQL::executeQuery(),GraphQL::promiseToExecute()andStandardServerhttps://github.com/webonyx/graphql-php/security/advisories/GHSA-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 https://github.com/webonyx/graphql-php/security/advisories/GHSA-7xh5-44rv-4vr4
Deprecated
QueryComplexityvalidation rule, use themaxQueryComplexityexecution option orComplexity::calculate()https://github.com/webonyx/graphql-php/security/advisories/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()https://github.com/webonyx/graphql-php/security/advisories/GHSA-7xh5-44rv-4vr4