跳至主要内容

1 篇文章 含有標籤「react-query」

檢視所有標籤

· 閱讀時間約 1 分鐘
ViPro

最近試了一下 GraphQL CodeGen 產生 react-query 和 resolver type, node server 可以保證回應的型態正確, react-query functions 更可以直接使用, 真ㄉ 4 超方便的 R~

可以參考這個簡單的範例: https://github.com/VdustR/example-graphql-fullstack-codegen