Categories
Android Update Internet Latest news Technology Reviews

next: Query an entry from Strapi in Next.js using Apollo, cross-fetch, and GraphQL

Now we are wanting to query that mock data in our application. We’ll start off by installing npm i @apollo/client cross-fetch graphql in our Next.js application.

We will create a new function called getStaticProps which will do all of our fetching using Apollo and GraphQL.