In the early 2000s, a new API architecture style called REST was invented, which has since overtaken the web development world and became the most ubiquitous web API technology. Nevertheless, progress and innovation – especially regarding the IT sector, never stop, including the world of web APIs.
In this paper, I present one such modern up-and-coming API technology called GraphQL originally invented by Facebook. Furthermore, I create a simple web server application with the aforementioned technology, then compare GraphQL to REST based on certain criteria. Finally, I give a recommendation: in what cases should you prefer it to REST and in what cases not.
But the GraphQL specification keeps evolving to this day, and various new features might be coming to it in the future.