question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type "Node" is missing a "resolveType" resolver

See original GitHub issue
Type "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
marktanicommented, May 1, 2018

Nodes are used by Relay. In Prisma, there is a Node interface. All models that you use implement this interface.

The warning warns you that there is not a specific resolver for the Node interface.

If you don’t have any queries that return a field of type Node, that’s not an issue at all.

If you do have such fields, you can implement a Node interface resolver.

0reactions
steidacommented, May 1, 2018

@marktani Thank you. The thing is, isn’t it somehow used by Relay?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type "Node" is missing a "resolveType" resolver. #2225 - GitHub
I use Prisma init my project. select typescript-advanced. When I yarn start I always found this console "Type "Node" is missing a "resolveType"...
Read more >
How to add a `resolveType` to GraphQL? - Stack Overflow
I keep getting the error: "message": "Abstract type \"Round\" must resolve to an Object type at runtime for field \"Trivia ...
Read more >
API Reference: graphql-tools - Apollo GraphQL Docs
This can be passed in with the field resolvers as __resolveType() . ... missing resolvers from their interface types defined in the resolvers...
Read more >
How to add __resolveType resolver for Interfaces?
Interface types requre a __resolveType resolver. ... cases I'm getting a warning stating Type "Tag" is missing a "__resolveType" resolver.
Read more >
Resolvers – GraphQL Tools
Writing resolvers with graphql-tools. ... or interface type, you will need to specify an extra __resolveType field in your resolver map, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found