Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub



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")
© 2023 Gatsby, Inc.