Printing Schemas
Sometimes it's useful to have an SDL version of your schema. To do this, you can use some tools from
the graphql
package to write your schema out as SDL to a file.
Using graphql-code-generator
An alternative to printing your schema directly is to generate your schema file using graphql-code-generator.
You can add the schema-ast
plugin to have graphql-code-generator generate your schema file for
you.
See Generating Client Types for more details