Today we are going to look at how to connect a GraphQl API to Next.js with Apollo.
The example is made with an API coming from Hasura.
The link to the repo: https://github.com/samfromaway/nextjs-apollo
More about it here in the official Next.js documentation: https://github.com/vercel/next.js/tree/canary/examples/with-apollo
Another great example where a HOC is used instead of directly calling it: https://github.com/leerob/daydrink/blob/master/graphql/apollo.js
Blog article by Apollo: https://www.apollographql.com/blog/building-a-next-js-app-with-apollo-client-slash-graphql/
#next #graphql #apollo