A Gatsby plugin (v0.2.2) that extracts the generated GraphQL schema to a file (schema.graphql or schema.json) during the build process. It supports custom output destinations and lifecycle hooks (getSchema, adjustSchema, writeSchema) for transforming the schema before writing. Compatible with Gatsby v2 through v5. Ideal for integrating with eslint-plugin-graphql to validate queries against the actual schema. Last updated in 2021, currently in maintenance mode with no recent releases or bug fixes.
npm install gatsby-plugin-extract-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Add the plugin to gatsby-config.js to extract GraphQL schema to schema.graphql file in project root.
Consider alternatives like gatsby-plugin-graphql-codegen or manually extracting schema.
Use __dirname or path.resolve() to construct absolute paths.
Ensure Gatsby >=2.0 is installed: npm install gatsby
No dependency data recorded yet.