Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


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.


npm install gatsby-source-drupal-graphql

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
      resolve: `gatsby-source-drupal-graphql`,
      options: {
        baseUrl: process.env.DRUPAL_BASE_URL,
        endPoint: process.env.DRUPAL_ENDPOINT,
        concurrency: 10, // defaults to 1
        incrementalChanges: true, // defaults to false
        auth: {
          // Using a String token value
          token: process.env.DRUPAL_AUTH_TOKEN,
          // Using Simple OAuth module
          oauth: {
            baseUrl: process.env.DRUPAL_BASE_URL,
            user: process.env.DRUPAL_AUTH_USERNAME,
            password: process.env.DRUPAL_AUTH_PASSWORD,
            clientId: process.env.DRUPAL_AUTH_CLIENT_ID
          inlineImages: {
            'NodeArticle': ['body'],
            'NodePage': ['body'],
© 2023 Gatsby, Inc.