Show HN: GraphQL Zeus – Autocomplete GraphQL Queries in JavaScript and TS
github.com
github.com
Generate library using zeus command:
$ zeus https://faker.graphqleditor.com/aexol/olympus/graphql ./generated
And use it like this
let DionysusCard = await Api(
'https://faker.graphqleditor.com/aexol/olympus/graphql'
).Mutation.addCard({
card: {
name: 'Dionysus',
description:
'Dionysus is the Greek god of wine, has the power to bring the dead back to life.',
Attack: 1,
Defense: 15,
Children: 9
}
})({
id: true,
name: true
});GraphQL Zeus is only one functionality package so it is easier to maintain.