Skip to content

v1.3.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@tlivings tlivings released this 09 Apr 20:01
· 168 commits to master since this release
88a1ab8
  • Imported resolvers will delegate to the imported component schema to which they belong (see below).
  • Remove this._context as default value for context in execute() requiring execute() users to pass in context from a calling resolver.

When a component imports another component, it imports the types as well as both root and type resolvers. If the parent component is utilizing execute, type resolvers will run twice because the sub-component will execute type resolvers to complete query and the parent component, which has imported the type resolvers will rerun them when it encounters the type.

This change keeps type resolvers from being imported and replaces imported root type resolvers with resolvers that delegate to the imported component schema as a sub-query.

There is a flag to disable this default behavior.