npm @redwoodjs/core 1.3.2
v1.3.2

latest releases: 8.0.0-canary.709, 8.0.0-canary.706, 8.0.0-canary.705...
2 years ago

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>;"
  }
}

Don't miss a new core release

NewReleases is sending notifications on new releases.