graphql-zeus icon indicating copy to clipboard operation
graphql-zeus copied to clipboard

Zeus generated file is incorrect when targeting Node and Graphql-ws subscriptions

Open gthau opened this issue 1 year ago • 0 comments

When targeting Node (--n) and Graphql-ws subscriptions (--subscriptions graphql-ws), the generated file has 2 issues that cause compile time and run time errors:

  1. tsc error: using global Headers type definition instead of node-fetch Headers type definition
  2. runtime error: not passing the webSocketImpl to the createClient function

This PR fixes both issues: https://github.com/graphql-editor/graphql-zeus/pull/390 (there's an open question about the apiSubscription function)

gthau avatar Feb 16 '24 17:02 gthau