-
Couldn't load subscription status.
- Fork 2k
Closed
Labels
⛲️ featureNew addition or enhancement to existing solutionsNew addition or enhancement to existing solutions
Description
IMO, Apollo Server should have a protection from deep nested and complex queries attacks by default (out-of-the-box), especially since many developers might not be aware of these concerns.
The algorithm described in “Semantics and Complexity of GraphQL” paper by @hartig and @jorgeperezrojas (see preprint at: http://olafhartig.de/files/HartigPerez_WWW2018_Preprint.pdf) looks very promising. It compute the size of a GraphQL query result (response) without generating this result. The good thing: this algorithm is polynomial in the size of the data and the query/request.
See also:
timkendall, iagobruno, P4sca1 and twistedfork88timkendall
Metadata
Metadata
Assignees
Labels
⛲️ featureNew addition or enhancement to existing solutionsNew addition or enhancement to existing solutions