DEV Community

Cover image for GraphQL queries easy again - Welcome GraphQL Zeus
Artur Czemiel
Artur Czemiel

Posted on

GraphQL queries easy again - Welcome GraphQL Zeus

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
Enter fullscreen mode Exit fullscreen mode

Just provide GraphQL endpoint or file and it will generate lib in desired location.

GitHub logo graphql-editor / graphql-zeus

GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native

npm Commitizen friendly npm downloads

GraphQL Zeus creates autocomplete client library for JavaScript or TypeScript which provides autocompletion for strongly typed queries.

From version 2.0 Zeus support mapped types !!!

Supported Languages:

  • Javascript
    • Browser
    • NodeJS
    • React Native
  • TypeScript
    • Browser
    • NodeJS
    • React Native

How it works

Given the following schema Olympus Cards

Table of contents

License

MIT

How to use

Main usage of graphql zeus should be as a CLI.

As

Discussion (0)