-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

GraphQL Best Practices
By :

Why does GraphQL bring about such significant changes? This is primarily because of introspection. In practice, this means that frontend developers, mobile developers, or any API consumers can send a query to the backend asking about the available resolvers, their parameters, and what will be returned from the backend. Thanks to this mechanism, developers can efficiently communicate with the API without diving into the system documentation.
Introspection is a mechanism that allows developers to see the entire structure of a system. Through introspection, we can not only discover what queries we can execute against the backend but also distinguish between queries for data retrieval and mutations for making changes to the system. Additionally, we receive detailed information about the returned types.
Why wasn’t this concept invented earlier, considering it is so simple and obvious? Well, it has been invented before, for...