How to Earn a Black Belt in GraphQL Testing
A quick overview of one of the most promising testing tools
The Hotels.com™️ community continues to play an active part in technology events around the world, one of these was Codemotion Rome 22–23 March 2019, where Luca Pelosi and Angela Distratis showed how Hotels.com faces GraphQL testing… using the martial arts!
The main issues with traditional REST APIs are over-fetching and under-fetching. Situations like the following, where we have to perform three or more calls in order to gather all the needed info, are very frequent:
With GraphQL we can avoid problems like these and create a real query language where you ask for exactly what you need with a single call.
GraphQL is new, and it’s great with plenty of benefits to users. If you are interested in learning more about GraphQL, here you can find some interesting Expedia Group articles.