DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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

…

Top comments (0)

This post blew up on DEV in 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!