Skip to main content
View plugin on GitHub
See starters using this



A simple plugin that adds new schema extensions to Gatsby’s GraphQL SDL.

Getting Started

Add this theme to your theme using:

npm install gatsby-theme-schema-extensions


yarn add gatsby-theme-schema-extensions

Next add the theme to your gatsby-config.js.

module.exports = {

You can now use the extensions during your schema custimizations in gatsby-node.js.

Example using a parent node’s body resolver:

exports.createSchemaCustomization = ({ actions }) => {
    createTypes(`type MdxCustom implements Node & Custom {
        id: ID!
        body: String @parent(from:"body")