GeneratorOptions
Options for the Baeta Generator.
Properties
Property | Type | Default value | Description |
---|---|---|---|
|
|
Glob pattern(s) to locate GraphQL schema files. | |
|
|
Output path for the generated base types file. | |
|
|
Path to the context type definition. Supports both named and default exports. Examples
| |
|
|
Current working directory for resolving relative paths. | |
|
|
Path to Baeta Extensions (ex. auth-extension). Only default export is supported. Example
| |
|
Configuration options for generated files. | ||
|
|
File extension to use in generated import statements. Set to false to omit extensions. | |
|
|
Custom schema loaders for processing schema files. | |
|
|
Filename for the generated module definition file. Contains type definitions and the GraphQL AST. | |
|
|
Root directory where GraphQL modules are defined. | |
|
|
Custom scalar type mappings. Maps GraphQL scalar types to TypeScript types. Supports global types and imports. Example
|