Today I released GraphQL Zeus library. It provides generated strongly typed libraries for GraphQL endpoints. So you don't have wonder what's wrong in your query - you can just use autocomplete from the generated library.
It is very complicated in case of Generics in TypeScript.
You can see a working example on my repo. If you have any comments or feature requests write here/ on GitHub.
How to use it?
$ zeus https://faker.graphqleditor.com/aexol/olympus/graphql ./generated
Just provide GraphQL endpoint or file and it will generate lib in desired location.
       graphql-editor
       / 
        graphql-zeus
      
        graphql-editor
       / 
        graphql-zeus
      
    
    GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native ( apollo compatible )
Strongly Typed GraphQL from the team at GraphQL Editor
How it works
GraphQL Zeus is the absolute best way to interact with your GraphQL endpoints in a type-safe way. Zeus uses your schema to generate Typescript types and strongly typed clients to unlock the power, efficiency, productivity and safety of Typescript on your GraphQL requests.
Features
⚡️ Validates queries and selectors
⚡️ Types mapped from your schema 
⚡️ Fetch all primitive fields with one function 
⚡️ Works with Apollo Client, React Query, Stucco Subscriptions (*more coming soon...)
⚡️ Works with Subscriptions 
⚡️ Infer complex response types 
⚡️ Create reusable selection sets (like fragments) for use across multiple queries 
⚡️ Supports GraphQL Unions, Interfaces, Aliases and Variables
⚡️ Handles massive schemas 
⚡️ Supports Browsers, Node.js and React Native in Javascript and Typescript 
⚡️ Schema downloader 
⚡️ JSON schema generation 
Full documentation
Our full documentation has all the use cases of:
- scalars
- …
 
 
              



 
    
Top comments (0)