Understanding the GraphQL query language
As I mentioned earlier, introspection is vital, and now I present to you the most important part that benefits from introspection: the GraphQL query language. While REST APIs allow for exposing the JSON schema, which provides information about the API structure, I have rarely encountered good use cases for it throughout my professional career. On the other hand, the GraphQL query language is widely used in a proper manner because the language makes it hard to make mistakes.
When I first started using GraphQL, I had this feeling of “Why didn’t people agree on such a standard earlier?” We didn’t need artificial intelligence or quantum computers for it – all we needed was to communicate and reach a consensus – but now GraphQL is commonly used and it is a standard we needed. While it may not be visibly apparent at this moment, I can confidently say that GraphQL is pushing programming technologies forward...