DEV Community

Discussion on: Is GraphQL the future of APIs?

Collapse
 
mandaputtra profile image
Manda Putra

I think you should add why and when to use GraphQL. Tools created to solve problem right? Why should I use it when I'm not encounter the same problem like that big company? I'm not Facebook, nor NY Times, maybe sometimes I am, but when?

What REST API cant do and graphQL can? with example?

Collapse
 
byrro profile image
Renato Byrro

Some of the mains benefits are:

  • reducing the number of times you need to hit an API endpoint
  • ability to request only the data you need

The GitHub Graph API is a great example of these two benefits. I strongly recommend reading their announcement post.

Collapse
 
bolt04 profile image
David Pereira

I think a RESTful API can also reduce the number of API calls in some scenarios. It's not just GraphQL that enables that imo

Collapse
 
yucer profile image
yucer

Maybe Rest can't rise su much VC. ๐Ÿค”

Collapse
 
mandaputtra profile image
Manda Putra

VC what is that?

Thread Thread
 
pramanadiputra profile image
Ida Bagus Gede Pramana Adi Putra

VC = Venture Capital

Thread Thread
 
mandaputtra profile image
Manda Putra

(ใƒปoใƒป) (โ”›โ—‰ะ”โ—‰)โ”›ๅฝกโ”ปโ”โ”ป

Collapse
 
yucer profile image
yucer

I think this is the official answer to that.

Collapse
 
mandaputtra profile image
Manda Putra • Edited

Yeah it is, but I dont know when to use GraphQL I still dont know why should I add it, I tried once though. But that not a big webapps simple one company profile.

So I really dont know why should I use it. Maybe in big apps thats make difference

Thread Thread
 
yucer profile image
yucer

I guess when the entities evolve quickly and are interrelated.

Few isolated entities might work better with rest.

I guess it might be also better when you integrate data from different services.