Socket
Book a DemoInstallSign in
Socket

gatsby-source-decoupla

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-decoupla

A Gatsby source plugin for Decoupla

0.1.16
latest
Source
npmnpm
Version published
Weekly downloads
27
28.57%
Maintainers
1
Weekly downloads
 
Created
Source

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
      }
    }
  }
}

Keywords

gatsby

FAQs

Package last updated on 17 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.