API Testing · Junior · Question 53 of 75
What is the main difference between GraphQL and REST for a tester?
- 1GraphQL APIs can only return data as XML
- 2One endpoint, and the client chooses the fields
- 3GraphQL doesn't use HTTP at all for requests
Show the answer
Correct answer: One endpoint, and the client chooses the fields
Explanation
Tests send queries and mutations to one URL. Errors often come in an errors array with status 200, so checking the status alone isn't enough.