@micimize/graphql-code-generator0.9.0-alpha.1 • Public • Published
This package is the front-facing package of the code generator.
It parses the CLI commands into a
Settings object, and also in charge of reading and writing files from the filesystem, and execute Introspection request to remote GraphQL endpoints.
For a full CLI documentation, please refer to the main
README file of the package.
gql-gen.json is a local config file, provides a custom config when using custom templates.
This is an example for a valid file:
You can override the config for
primitives (refer to
graphql-codegen-compiler package README for more info).
customHelpers when generating custom templates (the custom files should export a
Function as default).
Generator Specific Config
You can also pass configuration object to the output generator, by adding
generatorConfig to the