GraphQL Zeus is simply the 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.
Simply run Zeus in your terminal to output your types file based on your graphql schema:
A simple example of using a generated
chainclient. Queries, mutations and subscriptions are now type-safe in arguments, field selections and response types: