Show HN: Game Changing Typed GraphQL
github.com
github.com
So I guess this is a recommended option from Hasura to generate typed API bindings; I was going to try following that tutorial at some point, looks pretty slick.
Am I understanding correctly that this tool works with something like Hasura (GraphQL backend) to generate an API schema / query client that can be used with something like react-query to retrieve data?
If you want to use it with bigger than 1mb schemas create an issue , maybe we can split it to more files if that works for this limit
If you weren’t aware, you can’t run TS directly - you have to compile it to JS for execution
It also offers selectors from which you can create typings for your response objects if you are persisting those somewhere in state, so yeah it is a game changer not only for GraphQL, but for communication with backend and Frontend developer experience.
To be honest it has also some cons, for example: - variables are custom implementation and don't have typings as for now - some edge cases are not supported yet
Here are full docs: https://zeus.graphqleditor.com/