graphql-code-generator

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.

MIT License

Downloads
157.7M
Stars
10.6K
Committers
543

Bot releases are visible (Hide)

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 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
    

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 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
    
graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 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
    

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 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
    

Patch Changes

  • 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]

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-code-generator - @graphql-codegen/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes