4 ms·
You can do this with GraphQL too: https://genql.vercel.app/ https://genql.vercel.app/ https://github.com/graphql-editor/graphql-zeus https://github.com/graphq
by gavinray 4y ago
You can do this with GraphQL too:
https://genql.vercel.app/ https://genql.vercel.app/
https://github.com/graphql-editor/graphql-zeus https://github.com/graphql-editor/graphql-zeus
I did a 5 min talk about these newer breeds of codegen tools (where it's a single client SDK that does automatic return type inference based on the input args), they're really neat:
https://www.youtube.com/watch?v=7n3MeMFHiMk https://www.youtube.com/watch?v=7n3MeMFHiMk
(Skip to 2:14 to see the autocomplete/type-safety)
- deleted 4y ago[deleted]
- hu3 4y agoIt's not the same though. tRPC requires no code generation. With tRPC if I change the return type of an API, I get instant feedback on my frontend code with errors and autocompletion. Is my understanding correct?
- sirtimbly 4y agoCorrect! Instead of codegen, it relies on the TS language server to enforce schema compliance.