Skip to content
Discussion options

You must be logged in to vote

In 90% of cases, field resolvers are making computation based on the parent object (root in the error message).
So you can:

  1. Use @Root() root: Type1 as the first parameter
  2. Remove ResolverInterface
  3. Write your own ResolverInterface type that does not check the first argument at all.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@valerii15298
Comment options

Answer selected by valerii15298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants