Schema AST
Generate an AST representation of your GraphQL schema. This plugin is used internally by other plugins.
- Package
- @graphql-codegen/schema-ast
- Version
- 7.0.0
- Weekly downloads
- 12.8M
- License
- MIT
- Updated
- Nov 7, 2026
Installation
npm i -D @graphql-codegen/schema-ast
yarn add -D @graphql-codegen/schema-ast
pnpm add -D @graphql-codegen/schema-ast
bun add -D @graphql-codegen/schema-ast
Config API Reference
includeDirectives
type: boolean
Include directives to Schema output. Default value: “false”
includeIntrospectionTypes
type: boolean
Include introspection types to Schema output. Default value: “false”
sort
type: boolean
Set to false to disable sorting Default value: “true”
federation
type: boolean