Resolver return types do not have to match actual return types? #1112
-
Hi, I built a simple demo backend using this library, and it works. I am overall really impressed by the DX this provides. However, one quirk I have noticed is that the return type declared by the There should be an error pointing out the disconnect between the declared Query return type of a Is this simply a limitation of the library, and it's up to users to make sure the types match? Or am I missing something? Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the limitation of TypeScript. In ideal world it would just read |
Beta Was this translation helpful? Give feedback.
This is the limitation of TypeScript. In ideal world it would just read
: Promise<number>
type annotation and emitFloat!
in GraphQL.