When we talk about API design, the first thing that comes to our mind is REST (Representational State Transfer). In REST, data can be accessed from the server using url.
Back in the early 2000s, REST was best fit for most of the applications due to relatively simple client application, and the development pace wasn’t really where it is today. However, nowadays, API’s have become more complex due to the below reasons:
These shortcomings can be solved using GraphQL, an alternative to REST based architecture.
In this series of articles, we’ll discuss:

What is GraphQL?

GraphQL is a technology developed by Facebook and open sourced to the world in 2015.
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
SOURCED FROM GRAPHQL.ORG
So, I’ll reiterate saying GraphQL is not any specific framework or database but it’s a specification that describes the capability and requirement of the data model.

Pros and Cons

Just like any architecture, GraphQL also comes with a few cons. To decide if GraphQL suits your needs, it’s important to understand Pros and Cons of GraphQL
Pros
Cons
I hope you like the article. If you found the article interesting then kindly like and share it.