Replies: 1 comment
-
By default, codegen generates a signature that requires you to return what the schema exposes. So if the field is non-nullable, you'll have to return it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following snippet in my graphql schema:
In my resolvers object, I have the following:
However, Typescript complains and says I also need to include the
multiplier
field in the returned object. On one hand this makes b/cmultiplier
is required. But I'm also confused, shouldn't graphql go look for aCost
object and then use a resolver there instead?Beta Was this translation helpful? Give feedback.
All reactions