New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResolverArgs
の型推論が間違っている
#39
Comments
codegenの生成がそもそもおかしい |
|
やっぱそうかー、codegen と graphql.js の型が当ってない可能性は codegen 入れる時にちょっと思ってたけど見なかった事にしてた |
そんな気がしてる、graphql.js 対応とは一言も言ってないんだよね |
確かに第一引数にGraphQLの引数来そう https://graphql.org/graphql-js/object-types/ |
customResolverFn で変更できるらしい |
いやこれやると合ってる直resolversのほうも変わっちゃうな |
Closed
我々は全員間違えていて,すべき実装は以下だった.
|
多分もう解決しただろう #44 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
utils/types.ts
のResolverArgs
が全然間違っているらしく,第一引数にTParent
が来ることになっているが,実際には来ない(第一引数にやってくるのはTArgs
)The text was updated successfully, but these errors were encountered: