A transpiler that extends standard GraphQL schema syntax to support type inheritance among `type`, `input`, and `interface` definitions, allowing single and multiple inheritance to reduce boilerplate. Version 1.0.1 is the latest stable release; no active development or release cadence is documented. Unlike GraphQL tools that rely on code-first approaches or schema stitching, this package operates purely at the schema text level, making it simple to integrate into existing build pipelines. It also supports field type conversion when inheriting between `type` and `input` schemas.
npm install graphql-schema-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a GraphQL schema with type inheritance to standard GraphQL, creating a new schema string with all inherited fields copied.
Check generated input types for correctness; use `addMissingTypesAndInputs: false` to skip auto-conversion.
Avoid circular dependencies; validate schema before transpilation.
Ensure field names are unique across parent types or rely on first-come-first-served behavior.
Review generated input types for nullability changes; override fields explicitly.
Install @types/graphql or add custom typings: declare module 'graphql-schema-transpiler';
Use const { transpileSchema } = require('graphql-schema-transpiler'); or import { transpileSchema } from 'graphql-schema-transpiler';Remove circular extends clauses from schema types.
No dependency data recorded yet.