Re:Show HN: Game Changing Typed GraphQL
by aexol on Thursday January 20, 2022 @10:29AM
(#30010051)
I replied below
[ Parent
| on HN ]
Where?
above now :). I can do it again. Zeus allows you to generate client library from schema - not from queries. Then you can write queries in TS, you will receive:
- typed args
- typed response
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/