Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-drupal

Package Overview
Dependencies
Maintainers
1
Versions
815
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-drupal

Gatsby source plugin for building websites using the Drupal CMS as a data source

  • 1.0.0-alpha19-alpha.62172e76
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-25.41%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-source-drupal

Source plugin for pulling data into Gatsby from Drupal sites.

Pulls data from Drupal sites with the Drupal JSONAPI module installed.

An example site for using this plugin is at https://using-drupal.gatsbyjs.org/

Status

This module is at prototype-level. It currently only pulls from Drupal article nodes and users. TODOs include making it work with all node types.

Install

npm install --save gatsby-source-drupal

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-drupal`,
    options: {
      baseUrl: `http://dev-gatsbyjs-d8.pantheonsite.io`,
    },
  },
]

How to query

You can query nodes created from Drupal like the following:

{
  allDrupalNodeArticle {
    edges {
      node {
        title
        nid
        created(formatString: "DD-MMM-YYYY")
        author {
          name
        }
      }
    }
  }
}

Keywords

FAQs

Package last updated on 03 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc