Replies: 1 comment
-
You can try this one: The best solution is to write an explicit return type, like: @Query(() => Int)
hello(): string {
return "hello"
} So you can see that |
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 would like to understand way there are no errors in this resolver even where there is a type mismatch.
I am saying that the Query should return an Int but it actually returns a String. If I execute it, it does complain. But is there a way to have the error at "compilation" time? Without me having to execute the query in the playground in order to see if there is a type error?
Beta Was this translation helpful? Give feedback.
All reactions