'How ApolloGraphQL related to GraphQL?

I need to do a research on GraphQL and this confused me.

As I understand, ApolloGraphQL is some kind of framework/service that based on top of GraphQL (just like ExpressJS compared to Nodejs, Laravel framework compared to PHP)

Is that correct?

Thank you very much



Solution 1:[1]

GraphQL is a language that is mostly used right now as an API on top of your Node.js server (so server-side)

Apollo is a client-side library that is made to consume GraphQL APIs

So, for a popular setup (express + GraphQL + Apollo),

  • express and GraphQL will execute server-side
  • The GraphQL API will be exposed a /graphql
  • Apollo will be executed client-side (in the browser for example) and will consume the API at /graphql

Solution 2:[2]

Yes you are correct on that point

ApolloGraphQL is framework for graphql like express framework for rest apis. You can implement graphql without AppoloServer , but Appolo gives you easy ways to apply graphql that's why we use framework.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yachaka
Solution 2 samran