---
title: "Discussion on \"GraphQL vs REST: putting it to rest\" | Hashnode"
description: "Discussion on \"GraphQL vs REST: putting it to rest\". Since its introduction by Facebook, GraphQL has swept the  world as an alternative to REST APIs. GraphQL fixes many issues that API developers and users find in RESTful architectures. But it also poses a new set of challenges to overcome. GraphQL is ..."
url: "https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c"
---

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

Discussion

# [GraphQL vs REST: putting it to rest](https://avocadev.hashnode.dev/graphql-vs-rest-putting-it-to-rest?utm_source=hashnode&utm_medium=feed)

Since its introduction by Facebook, GraphQL has swept the world as an alternative to REST APIs. GraphQL fixes many issues that API developers and users find in RESTful architectures. But it also poses a new set of challenges to overcome. GraphQL is ...

Jun 22, 2022 · 6 min read · avocadev.hashnode.dev  
Read the article

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

## Written by

[Developer Avocado](https://hashnode.com/@AvocaDEV)

@AvocaDEV · undefined

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

Frontend developer. Debugging this world one console.log() at a time

Debugging this world one console.log() at a time

## Responses 7

Markdown supported · ⌘↵ to post

[Lucky victory](https://hashnode.com/@codewithveek)

[Nov 26, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/6381dda860dba100605a7eed)

Great article, but my question is, when exactly is GraphQL a better option to REST? In what kind of applications are they mostly needed? Social media apps or Blogs?

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Aug 8, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62f0d7e3dfc2b15565885ecc)

Good article [Developer Avocado](https://hashnode.com/@AvocaDEV).

[johnson62](https://hashnode.com/@omygodess)

[Jul 5, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62c3f31cc0401b3dcbcff96b)

Great article. Thanks for sharing it. love it. @ [Geometry Dash Unblocked](https://geometrydashunblocked.io/)

[Araxas](https://hashnode.com/@Araxas)

[Jun 28, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62bb54fdc2f205e7cdb18a81)

Another article saying rest has no way to limit the data. There are tons of ways to do this, the API you are using as an example chose NOT to implement any. OData had a way to limit data, even pass query params, join info, etc. This is not new.

GraphQL is not magic, someone still had to implement the API to do the query the right way, etc. You can do the same and expose a REST and GraphQL endpoint that do the same things.

[Lucky victory](https://hashnode.com/@codewithveek)

[Nov 26, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62bb54fdc2f205e7cdb18a81#reply-6381dcc960dba100605a7ed6)

Yeah, you're right, In some of the APIs I have built (mostly for personal use), I do include a `fields` query param, which is a string of column names delimited by a comma, which I validate against my an array of database column names, this way I can return specific data.

[Saif Aljanahi](https://hashnode.com/@saifaljanahi)

[Jun 24, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62b59e42b86f939ac81b2dde)

Excellent

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jun 23, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62b3b047b8204992cc91df2b)

Thank you [Developer Avocado](https://hashnode.com/@AvocaDEV)

[Jenn Penington](https://hashnode.com/@jenpenn)

[Jun 22, 2022](https://hashnode.com/posts/graphql-vs-rest-putting-it-to-rest/62b3010082c37c9011bf2b4c/comment/62b340fb86d22092a7546991)

Great article thanks!
