DEV Community

Discussion on: Is GraphQL better option than Rest ?

Collapse
 
jwhenry3 profile image
Justin Henry

I would preferably work in REST environments since it's a bit more explicit and simpler to build out. GraphQL works best for very large and extensive APIs that require that level of flexibility. The size and purpose of an app should determine which to use more than just blanketing all of the web with one or the other.
EX: Simple NextJS apps that have a few endpoints benefit more from very small, concise REST API endpoints, whereas a gradually growing system that frequently adds new features would benefit from GraphQL more.

Collapse
 
arpanforgeek profile image
Arpan Bandyopadhyay

I agree. Thanks for your valuable comment .