Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

Gatsby source plugin for Decoupla

This plugin is based on gatsby-source-graphql.

Documentation

Documentation can be found at: https://decoupla.com/api-docs/gatsby/gatsby-integration/

Installation

npm i gatsby-source-decoupla

Usage

The workspace and token can be found in your Workspace API Settings.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-decoupla`,
      options: {
        workspace: `your_workspace_id`,
	token: `your_token`
      },
    },
  ],
}

Querying data

The genrated GraphQL types and queries for your Workspace are available inside the Decoupla { ... } root query.

query {
	Decoupla {
		...your data would be avilable here
	}
}

Note: The generated GraphQL types generated based on models, would be prefixed with Decoupla_.

Example

Querying a Blog Article Model by slug.

query {
  Decoupla {
    blogArticle(filters:{ slug: { eq: "<article_slug>" } } ) {
      node {
        id
        title
      }
    }
  }
}
© 2026 Gatsby, Inc.