Skip to content

GraphQL Code Generator plugin for generating a .graphql file from given schema with more options.

License

Notifications You must be signed in to change notification settings

erictaylor/graphql-codegen-schema-ast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a plugin for @graphql-codegen/cli that works like @graphql-codegen/ast but will more options.

Installation

yarn add -D @erictaylor/graphql-codegen-schema-ast

API Reference

includeDirectives

type: boolean default: false

Include directives to Schema output.

includeIntrospection

type: boolean default: false

Include introspection types to Schema output.

commentDescriptions

type: boolean default: false

Set to true in order to print description as comments (using # instead of """)

sort

type: boolean default: false

Set to true in order to get the schema lexicographically sorted before printed.

federation

type: boolean

Usage

schema:
  - "./src/schema.graphql"
generates:
  path/to/file.graphql:
    plugins:
      - "@erictaylor/graphql-codegen-schema-ast"
    config:
      includeDirectives: true
      includeIntrospection: true

About

GraphQL Code Generator plugin for generating a .graphql file from given schema with more options.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published