---
title: "Discussion on \"Graphql vs REST API\" | Hashnode"
description: "Discussion on \"Graphql vs REST API\". Graphql and Rest api both are ways of defining web API on server which can be used by client to gather the data.\nLets see the problems with the REST api and how graphql fixes it.\n\nNo enforce contract:\n There is no contract between the client and serv..."
url: "https://hashnode.com/posts/graphql-vs-rest-api/6628af1a41a4cabe8b28448f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Graphql vs REST API](https://moksha.hashnode.dev/graphql-vs-rest-api?utm_source=hashnode&utm_medium=feed)

Graphql and Rest api both are ways of defining web API on server which can be used by client to gather the data. Lets see the problems with the REST api and how graphql fixes it. No enforce contract: There is no contract between the client and serv...

Apr 24, 2024 · 2 min read · moksha.hashnode.dev  
Read the article

-   [#graphql](https://hashnode.com/tag/graphql)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Amol Khatri](https://hashnode.com/@amolkhatri)

@amolkhatri · Pune, India

  
[View profile](https://hashnode.com/@amolkhatri)

Engineer, Enthusiastic

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
