4 reasons why you should use GraphQL over REST APIs

By DEV Community - 2021-01-06

Description

REST has been preferred by many developers to send data over HTTP because they didn't need to install...

Summary

  • REST has been preferred by many developers to send data over HTTP because they didn't need to install additional software or libraries when creating an API though GraphQL is ordinarily introduced as a technology to replace the legacy of REST APIs.
  • So, the client has to make multiple requests to get everything the application needs.
  • I also held discussions about converting blobs on the backend or sending them over to the third parties that can handle it and store it as a file with url of the image in response.
  • REST API over fetching and under fetching can be resolved on the REST API, I am sure that you do it yourself if you are fullstack so you have control what is sent over which API route or if you are frontend, I know it is difficult, but please try to communicate with, you know, backend guy who handles the REST API routes.

 

Topics

  1. Backend (0.28)
  2. Frontend (0.19)
  3. UX (0.16)

Similar Articles

How to Fetch Data in React: Cheat Sheet + Examples

By freeCodeCamp.org - 2021-02-12

There are many ways to fetch data from an external API in React. But which one should you be using for your applications in 2021? In this tutorial, we will be reviewing five of the most commonly used ...

Using a REST API in react

By DEV Community - 2020-12-30

WHAT IS AN API An API stands for an "Application Programming Interface". It allows communi... Tagged with webdev, react, html, javascript.