API Testing · Middle · Question 43 of 75
What is GraphQL query depth or complexity limiting for?
- 1Making the server return data in alphabetical order
- 2Limiting how many fields the schema is allowed to have
- 3Preventing expensive nested queries from overloading the server
Show the answer
Correct answer: Preventing expensive nested queries from overloading the server
Explanation
A deeply nested query like friends of friends of friends can explode. Tests check such queries are rejected.