API Testing · Junior · Question 54 of 75
A GraphQL response has status 200 and an errors array. Did the request succeed?
- 1Not fully; check
errorsas well asdata - 2No, GraphQL treats every 200 as a failure
- 3Yes, status 200 always means it succeeded
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.