Introduction to GraphQL

GraphQL is a query language for APIs, which serves as a run time for fulfilling those queries using the existing data. With GraphQL, the client can ask for the data it needs and gets exactly that- nothing more or nothing less. GraphQL is not tied to any specific database or storage engine and hence a flexible option to retrieve data from multiple sources. GraphQL is capable of fetching all the data requested by the client in a single API call thus reducing the number of calls sent to the API. The GraphQL server makes use of resolver functions – a query handler for all the queries received from the client. Applications that have used GraphQL in building APIs have found to be very stable and fast as Graphql controls the data it gets and not the server that provides it.