DEV Community

Bret
Bret

Posted on

Apollo/GraphQL vs MERN/MongoDB

What are reasons to use Apollo GraphQL?

How does it differ from using just Axios for a API? or even when your using MERN, that your getting/making data to your database?

Top comments (3)

Collapse
 
zhnedyalkow profile image
Zhitomir Oreshenski

Apollo will give you ability to fetch data that you want instead receiving bunch of unnecessary items or chain multiple request to build what you want.

Collapse
 
yobretyo profile image
Bret

Is it mainly for when your using a API vs your own data?

Collapse
 
zhnedyalkow profile image
Zhitomir Oreshenski

Well, it will simplify fetching complex data and mostly depends on your needs, but you will have a control on FE as well.