Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 515 Bytes

stucco.md

File metadata and controls

21 lines (17 loc) · 515 Bytes
link title order category
plugins/stucco
Stucco
3
Plugins

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);