Understanding GraphQl and its benefits

Understanding GraphQl and its benefits

A brief overview of how GraphQl work

Table of contents

No heading

No headings in the article.

A query language for your API — GraphQL provides a complete description of the data in your API, gives clients the power to ask for exactly what they need.

The expression above is the power of GraphQL and it is a single source of data compared to REST API where we can have many endpoints to consume in our application.

Another beautiful thing GraphQL also gives to your software architecture is the fact that the front and back of your application synchronize seamlessly. What do I mean? In normal REST API, chances are that you will be doing data modeling on the front end which without doubt consumes a lot of time and more code. But GraphQL allows you to take the exact data your component need.

Using GraphQL alone is not sufficient for a large enterprise application, this deficit gave birth to Apollo GraphQL.

What is APOLLO CLIENT / APOLLO GRAPHQL
Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. Use it to fetch, cache, and modify application data, all while automatically updating your UI.

Thanks for reading and you can add more to this in the comment section.