API Testing · Junior · Question 54 of 75

A GraphQL response has status 200 and an errors array. Did the request succeed?

Show the answer

Correct answer: Not fully; check errors as well as data

Explanation

GraphQL can return partial data with errors. Tests must assert that errors is absent when success is expected.

Further reading

Problem with a question

API Testing · Junior · question 54

Test yourself

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

Take this quiz