Skip to content

Plugin to generate GQL file for the schema #8225

Answered by charlypoly
alamothe asked this question in General
Discussion options

You must be logged in to vote

Hi @alamothe,

The @graphql-codegen/schema-ast plugin will generate a schema.graphql file from a schema, with the example configuration:

#
schema:
  - 'http://localhost:3000/graphql'
  - './src/**/*.graphql'
  - 'scalar MyCustomScalar'
generates:
  path/to/file.graphql:
    plugins:
      - schema-ast

Is it what you are looking for? 👀

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alamothe
Comment options

Answer selected by alamothe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants