How to Earn a Black Belt in GraphQL Testing

A quick overview of one of the most promising testing tools

Luca Pelosi
Expedia Group Technology

--

image credits: https://unsplash.com
Image Credits: https://unsplash.com

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:

Under-fetching causes multiple calls to different endpoints

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.

--

--

Luca Pelosi
Expedia Group Technology

Sr Automation Software Engineer at Expedia Group, technology enthusiast. Gush out ideas, startups, personal growth, finance and innovation as much as possible.