DEV Community

Discussion on: Does GraphQL replace REST API ?

Collapse
 
hintofsarcasm profile image
Nathan

I don't agree with the first example, why would you not write an endpoint that returns all 3 of these sets of data if you knew it's what you required?

I believe this is misleading, to make GraphQL look more convenient when actually you can achieve the same extremely easily in REST with good planning.