19 ms·
What’s the difference between this and react relay, which generates typescript types for Graphql queries?
by gvkhna 5y ago
What’s the difference between this and react relay, which generates typescript types for Graphql queries?
- aexol 5y agoI replied below
- motoxpro 5y agoWhere?
- aexol 5y agoabove 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/ https://zeus.graphqleditor.com/