A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true
this way it ensure that generated code works with non-compliant bundlers.
You can use the option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
Published by github-actions[bot] over 2 years ago
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true
this way it ensure that generated code works with non-compliant bundlers.
You can use the option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true
this way it ensure that generated code works with non-compliant bundlers.
You can use the option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true
this way it ensure that generated code works with non-compliant bundlers.
You can use the option in your config:
schema: 'schema.graphql'
documents:
- 'src/**/*.graphql'
emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
32c1560f1: getPluginByName fails unexpectedly when plugin is not prefixed with @graphq-codegen in ESM context
MODULE_NOT_FOUND is the error code you receive in a CommonJS context when you require() a module and it does not exist.
ERR_MODULE_NOT_FOUND is the error code you receive in an ESM context when you import or import() ad module that does not exist.
Updated dependencies [2cbcbb371]
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago