Course lesson
Query Data with GraphQL in Next.js from a Fauna Database
Now that Apollo Client is set up and ready to be used, we can finally query data from Fauna to use in our application.
- Duration
- 1 min
- Access
- Free
- Transcript
- Retained from source evidence
Now that Apollo Client is set up and ready to be used, we can finally query data from Fauna to use in our application.
We'll go to the Fauna GraphiQL playground and copy the findShopById query that we ran previously. This query will be passed into Apollo's useQuery hook.