link | title | order | category |
---|---|---|---|
plugins/stucco |
Stucco |
3 |
Plugins |
Zeus can generate types for the Stucco Subscription library by adding the --stuccoSubscriptions
flag to the CLI. All types in data
are then inherited from the Zeus query.
$ zeus schema.graphql ./ --stuccoSubscriptions
stuccoSubscriptions(
(apiFetchResult) => [apiFetchResult.url],
'https://my.backend/graphql',
)({ drawCard: { Attack: true } }).on((args) => args.drawCard.Attack);