Introduction

This would be a series of articles, in this article, we would talk about GraphQL, its comparison with REST and how it works, why it is used, and its operation types.

It will cover the following things,

What is GraphQL?

How does GraphQL works?

Why GraphQL?

REST vs GraphQL

Operation types - Query & Mutation

Query

query { users { id name email } }

Mutation

mutation { createUser(name: "John", email: "[email protected]") { id name email } }

In this article, we talked about GraphQL, its comparison with REST and how it works, why it is used and its operation types, see you in next series of articles.

Happy learning!