Tomek Poniatowicz
11/15/2019
GraphQL Zeus is an open-source (MIT) graphql client & code generator working with a Browser, Node.js & React Native. It provides an auto-complete client library for JavaScript or TypeScript supporting auto-completion for strongly typed queries. It's maintained by Artur Czemiel (follow him on Twitter for latest GraphQL Zeus news & updates).
To play with it use npm install:
$ npm i -g graphql-zeus
Zeus supports:
GraphQL Zeus provides many useful solutions among which you can find such as:
Chain - Chain is the main function responsible for forming a GraphQL Query. It provides auto-complete in Zeus Syntax. Returned data is mapped accordingly to GraphQL query, so you get type-safe completion for both query and response in both TypeScript and JavaScript.
Aliases - You can alias each query just like in GraphQL original specification. To use alias
you just need to provide __alias:{[YOUR_ALIAS]:YOUR QUERY}
Selectors - If you use same GraphQL query many times you can use Selectors
which you can later inject into the Chain
function
###JavaScript & React Native:
$ zeus schema.graphql ./
$ zeus schema.graphql ./ --ts
$ zeus schema.graphql ./ --node
Awesome, just:
git checkout -b feature-name
git commit -am 'Add some feature'
git push origin my-new-feature