A toolkit for building custom Gatsby source plugins that fetch data from remote GraphQL APIs. Current stable version: 2.0.4. This package is in maintenance mode pending a replacement. Unlike gatsby-source-graphql, it correctly sources nodes into Gatsby's data layer, enabling caching, incremental builds, and Gatsby Preview. Features include automatic pagination, concurrent data fetching, delta change tracking, and schema customization. Ships TypeScript definitions. Peer dependency on Gatsby v3/v4/v5.
npm install gatsby-graphql-source-toolkitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure and use the toolkit in a Gatsby source plugin: set up executor, load schema, define node types, compile queries, and source nodes.
Monitor the Gatsby repository for the replacement package; for now it works but no new features will be added.
Upgrade Gatsby to v3, v4, or v5, or pin to an older version of the toolkit (v1.x).
Refer to the examples repository (https://github.com/vladar/gatsby-graphql-toolkit-examples) for usage patterns.
Implement a custom adapter; see the README section on Custom Pagination Adapter.
Ensure createDefaultQueryExecutor is called with a valid URL and the executor is passed correctly to loadSchema.
Pass compiledQueriesDir in the options object, or ensure the Gatsby project root is set correctly.
Run npm install gatsby or ensure Gatsby is in your project's dependencies.