Aditi Dosi
2 min readAug 24, 2022

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.

Language Support

JavaScript Go PHP Java / Kotlin C# / .NET Python Swift / Objective-C Rust Ruby Elixir Scala Flutter Clojure Haskell C / C++ Elm OCaml / Reason Erlang Julia R Groovy Perl D

GraphQL is an open source server-side technology which was developed by Facebook to optimize RESTful API calls. It is an execution engine and a data query language. This tutorial will introduce you to the fundamental concepts of GraphQL including −

Implement GraphQL API using Apollo server

Test GraphQL API using GraphiQL

Build ReactJS (with Apollo Client library) and jQuery client applications to consume the API

Is GraphQL better than REST API?

Here is the important difference between GraphQL and REST API. GraphQL is an application layer server-side technology which is developed by Facebook for executing queries with existing data. REST is a software architectural style that defines a set of constraints for creating Web services.

Does GraphQL use JSON?

GraphQL services typically respond using JSON, however the GraphQL spec does not require it. JSON may seem like an odd choice for an API layer promising better network performance, however because it is mostly text, it compresses exceptionally well with GZIP.

Can GraphQL replace REST?

GraphQL is a query language and runtime for APIs, intended to be a replacement for REST. GraphQL offers a more efficient and flexible way for building APIs and scaling.