API Testing · Middle · Question 43 of 75

What is GraphQL query depth or complexity limiting for?

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.

Further reading

Problem with a question

API Testing · Middle · question 43

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz