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.
- Fix/ts resolvers type #5437 by @dac09
- fix: Run dedupe during upgrade on yarn 3 #5458 by @callingmedic911
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>;"
}
}