Graphql-code-generator: Type ******* is missing a "__resolveType" resolver.

Created on 6 Jan 2020  Â·  3Comments  Â·  Source: dotansimha/graphql-code-generator

Describe the bug
Since 1.10 I'm getting warning when generating types from schema with interface.
Type * is missing a "__resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.

Generated definitions seems to be fine.

To Reproduce
Just check this codesandbox using schema from project homepage https://graphql-code-generator.com/

https://codesandbox.io/s/unruffled-kapitsa-tn66e

Output on command line

Type "Node" is missing a "__resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.
Type "SearchResult" is missing a "__resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.
  ✔ Parse configuration
  ✔ Generate outputs
Done in 0.94s.
bug core waiting-for-release

All 3 comments

@proutek Thank you for reporting the issue!
It's fixed in #3213
You can try the canary version;
1.10.1-alpha-7abaacf0.6

It is fixed. Thank You! I can confirm the warning is gone.
Sorry for redundant issue report.

Fixed in 1.11.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RIP21 picture RIP21  Â·  3Comments

bastman picture bastman  Â·  3Comments

leebenson picture leebenson  Â·  3Comments

fvisticot picture fvisticot  Â·  3Comments

dotansimha picture dotansimha  Â·  3Comments