Gatsby Book Launch

“The missing guide to the modern web” launches on Thursday, Sep 29th: Modular: The Web’s New Architecture

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby-source-drupal-graphql

Source plugin for pulling data (including images) into Gatsby from Drupal sites using GraphQL.

It pulls data from Drupal 9+ sites with the Drupal GraphQL Compose module installed.

Install

npm install gatsby-source-drupal-graphql

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-drupal-graphql`,
      options: {
        baseUrl: `https://dev-drupal-graphql.pantheonsite.io`,
        endPoint: `/graphql`,
        concurrency: 10, // defaults to 1
        incrementalBuilds: true, // defaults to false
      },
    },
  ],
}
© 2022 Gatsby, Inc.