Chapter 3: Sourcing and Querying Data (from Anywhere!)

In this chapter, you will learn about Gatsby's data layer. You will start by understanding what we mean by data in the context of Gatsby before learning the basics of GraphQL. Once you have this understanding, you will learn how to source and query data from local files. We will then look at sourcing data from a couple of Headless CMSes.

In this chapter, we will cover the following topics:

  • Data in Gatsby
  • Introducing GraphQL
  • Sourcing and querying data from local files
  • Sourcing and querying data from a Headless CMS

Technical requirements

To complete this chapter, you will need to have completed Chapter 2, Styling Choices and Creating Reusable Layouts.

The code for this chapter can be ...

Get Elevating React Web Development with Gatsby now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.