DEV Community

Ali Abbas
Ali Abbas

Posted on

Choosing GraphQL or Restful API?

GraphQL vs Restful API

If your request is like this /posts/query?sort=asc & limit=10 & format = json & id =888, then at that point, use of GraphQL is best.

But in another scenario, where you request is like this /posts/query **and you will be consuming all the parameters, then **RESTFUL API will be faster and reliable.

Most reliable way of building an API is through the concept of Restful API.

Top comments (0)