DEV Community

Anil kumar
Anil kumar

Posted on

What is GraphQL? Is it a replacement for the REST API?

The diagram below shows the quick comparison between REST and GraphQL.

๐Ÿ”นGraphQL is a query language for APIs developed by Meta. It provides a complete description of the data in the API and gives clients the power to ask for exactly what they need.

๐Ÿ”นGraphQL servers sit in between the client and the backend services.

๐Ÿ”นGraphQL can aggregate multiple REST requests into one query. GraphQL server organizes the resources in a graph.

Image description

Top comments (0)