Chapter 11: MicroProfile GraphQL
GraphQL is a distributed query language that addresses some of the shortcomings of REpresentational State Transfer (REST). In particular, GraphQL addresses the notions of over-fetching (receiving more data than the client intended) and under-fetching (requiring the client to make multiple requests to get the data it requires). GraphQL applications make use of a schema file that presents clients with the queries and mutations at its disposal, as well as the entities it can access and manipulate.
The ease of use and robustness of GraphQL explains why its popularity is growing, especially in cloud-native applications. MicroProfile GraphQL (MP GraphQL) makes it easy to create GraphQL-based applications.
In this chapter, we're going to cover the following main topics:
- Understanding GraphQL basics and when to use it
- Building services with MP GraphQL
- Consuming GraphQL services with client application programming interfaces (APIs...