Skip to content

v1.3.2

Compare
Choose a tag to compare
@jtoar jtoar released this 10 May 06:30
· 5854 commits to main since this release

Patch Release

This release includes a fix for yarn rw type-check (#5370). Dependencies are also deduped after upgrade on Yarn 3 projects to fix miscellaneous dependency errors that users sometimes see after upgrading.

Notes on TypeScript strict mode

If you're using TypeScript strict mode, you may find that resolver arguments are harder to access because they're typed as optional.
We're working on improving this, and will have documentation as well as an official solution shortly.

For now, you can override the built-in graphql-codegen configuration (see the codegen config docs) to make the resolver parameters non-optional. For example:

./codegen.json at the root of your project

{
  "config": {
    "customResolverFn": "(args: TArgs, obj: { root: TParent; context: TContext; info: GraphQLResolveInfo }) => Promise<Partial<TResult>> | Partial<TResult>;"
  }
}