How do you prevent nested attack on GraphQL/Apollo server?

Answers • 2 Asked • Mar 13 2019
How do you prevent a nested attack against an Apollo server with a query such as:
{ authors { firstName posts { title author { firstName posts{ title author { firstName posts { title [n author] [n post] } } } } } } }

In other words, how can you limit the number of recursions being submitted in a query? This could be a potential server vulnerability.

Write your answer...

On a mission to build Next-Gen Community Platform for Developers