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] about 2 years ago

Patch Changes

  • 20bf4b225: support for path containing "&" characters
graphql-code-generator - @graphql-codegen/[email protected]

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

Patch Changes

  • ab66ba104: Add useQuery argument generic type
graphql-code-generator - @graphql-cli/[email protected]

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

Patch Changes

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

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

Patch Changes

  • 6a2e328e6: feat(cli): --verbose and --debug flags
graphql-code-generator - @graphql-cli/[email protected]

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

Patch Changes

  • Updated dependencies [6a2e328e6]
  • Updated dependencies [fd6be805b]
graphql-code-generator - @graphql-codegen/[email protected]

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

Minor Changes

  • fd6be805b: feat(cli): add a dry-run mode with --check cli flag

Patch Changes

  • 6a2e328e6: feat(cli): --verbose and --debug flags
  • Updated dependencies [6a2e328e6]
graphql-code-generator - @graphql-cli/[email protected]

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

Patch Changes

  • Updated dependencies [273ad602f]
  • Updated dependencies [cc18923d3]
graphql-code-generator - @graphql-codegen/[email protected]

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

Minor Changes

  • 273ad602f: Replace cross-undici-fetch with @whatwg-node/fetch to fix security vulnerability from undici

Patch Changes

  • cc18923d3: feat(hooks): forward hooks logs to debug logs
graphql-code-generator - @graphql-codegen/[email protected]

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

Major Changes

  • 5c7592b4d: Introduces breaking changes to support [email protected]:

    • react query package is now @tanstack/react-query -> import changes
    • introduced a legacyMode flag (false by default)

    /!\ If you are using the 'react-query' package or react-query < 4, please set the legacyMode option to true. /!\

graphql-code-generator - @graphql-cli/[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

  • e2cfc5c36: fix(cli): prevent duplicated error messages on fail (without watcher)
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

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]