API Testing · Senior · Question 44 of 75

How do you test GraphQL authorization properly?

Show the answer

Correct answer: Per field and per resolver, including nested paths

Explanation

A user may be blocked from user(id) but reach the same data via order { customer { email } }. Every path needs checks.

Further reading

Problem with a question

API Testing · Senior · question 44

Test yourself

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

Take this quiz