Fetch and Query Data at Build Time in Gatsby

Share this video with your friends

Send Tweet

In order to fetch data at build time, you can use a source plugin or source data yourself. In our case we'll be using the gatsby-source-graphql plugin. It allow us to connect arbitrary GraphQL APIs to Gatsby’s GraphQL, in this case Contentful.

In this lesson, you will learn how to load data from an external service and query it in you rgatsby project using GraphQL