Take a REST, let's talk about GraphQL

By Dawid Pacia

Elevator Pitch

GraphQL - the buzzword for the last few years. Among REST, SOAP, WebSockets, and (g)RPC it is currently the second most popular API and the fastest trending one! Being less than 10 years old, a lot of people love it for its simplicity, versatility, and flexibility. Understand, implement, and enjoy!

Description

Over the years there, more and more client-server ways of communication appear. Some of them organically disappear when others are widely adopted. What’s more important, some of them are used simultaneously in a single company or a single product. That also forces us to understand them (and key differences) rather than focusing on just a single one. Yet before we get into details there should be one small note: SOAP is a protocol, REST is an architectural style, while GraphQL, as we can see from the “QL” in its name, is a query language.

However, that is just the theory - time to jump into practice!

During the workshop, we will go through GraphQL main concepts. I will show you how to manage testing flows efficiently and build valuable assertions. You will also understand how to work with variables (in fact, nobody likes fully hardcoded test data). Last but not least you will have a chance to easily parametrize queries and separate them from the main body.

For simplicity purposes, we will use Postman.