npm @graphql-codegen/typescript-resolvers 1.2.0
v1.2.0

Core

🚀 🎉 NEW PLUGIN: typescript-urql (#1814)

  • If you are using urql as your GraphQL client, this plugin will create a ready-to-use HOC/Component/Hooks with full type-safety according to your queries/mutations. (Thanks @mxstbr !)

🚀 🎉 NEW PRESET: near-operation-file

Added in #1846, this preset allow you to easily generate your client-side operations code near your original operation file.
Also had some fixes in #1893

TypeScript

  • Add __typename to base TS and flow types (#1701)
  • Add option for non-optional typename in operations (#1879)

TypeScript Operations

  • Add option for non-optional typename in operations (#1879)

TypeScript Compatibility

TypeScript Resolvers

  • Fix for resolvers type mapping when it refers to itself (#1891)

TypeScript React Apollo

  • Make suffix of generated React Apollo components customizable (#1843)
  • Import necessary imports only if they're used (#1853)
  • Export react-apollo component props (#1854)

TypeScript GraphQL Files Modules

  • Allow specifying module path prefix (#1875)
latest releases: 2.3.2, 2.3.1, 2.3.1-alpha-143b4bc91.0...
2 years ago