npm @graphql-codegen/typescript-resolvers 1.8.0
v1.8.0

Do you want The Guild to keep your codebase up to date and run your build on each GraphQL Code Generator commit so we'll make sure not to break your app?
Contact us here: the-guild.dev/connected-build

core/cli

  • update dependencies
  • feat(core): add option for disabling document validation (#2567, thanks @n1ru4l)
  • Prepare for federation on top of plugins (#2591)
  • Recognize Federation in all plugins (#2508)
  • Separate the cli bin and cli execution - now it's possible to execute the codegen cli using programatic API (https://github.com/dotansimha/graphql-code-generator/commit/b4e56daa3a7c770ee008d3afca26d790b26490a7)
  • Removed peer dependency for @types/graphql from plugins and core (#2488, thanks lifeiscontent)
  • Fix comments escaping (#2484)
  • Bump graphql-toolkit version and fix performance issue (#2655)
  • Remove dependency for @types/graphql (since GraphQL now has it's own typings)

🚀 NEW PLUGIN: java-apollo-android

Generates a ready-to-use parser and mappers for Apollo Android developers with Java.

More info: https://github.com/dotansimha/graphql-code-generator/pull/1924

🚀 NEW PLUGIN: kotlin

More info here: https://github.com/dotansimha/graphql-code-generator/pull/2598

Thanks @tristanlins ❤️

typescript-operations

flow-operations

flow

  • set exact=true as default in flow types (#2613)
  • Improve Flow types using spread operator (#2602)

flow-resolvers

  • Fix for incorrect usage of SubscriptionSubscriberObject and SubscriptionObject (#2533)
  • Added missing Origin to $Diff declaration (#2533)

near-operation-file

typescript-resolvers

  • Adjust resolver type of __resolveReference field (federation) (#2618)
  • Fix getTypeToUse within parent resolvers type (#2557, thanks @blakeembrey)
  • fix for unused GraphQLScalarTypeConfig in resolvers (federation) (#2564)
  • fix: do not strip properties from federation resolvers parents (#2534, thanks @ForbesLindesay)

typescript-react-apollo

  • Allow to prefix type (to make it compatible with import-types preset) (https://github.com/dotansimha/graphql-code-generator/pull/2344, thanks @veeramarni)
  • Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)
  • Generate docblocks for hooks (#2572, thanks @CarloPalinckx )
  • add missing lazy query hooks result type (#2486, thanks @waynelai614 )

typescript-apollo-angular

  • Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)

typescript-urql

  • Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)

typescript-stencil

  • Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)

Docs

  • Documentation improvements (thanks @glenwinters, @pmbanugo, @lookfirst, @Shpota)
  • Added docs for import-types preset
  • Updated docs for all plugins
  • Updated best practice usage for Java plugins
latest releases: 2.3.2, 2.3.1, 2.3.1-alpha-143b4bc91.0...
2 years ago