StuccoJS Subscriptions

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);
Last modified 3mo ago