graphql-zeus
graphql-zeus copied to clipboard
Zeus generated file is incorrect when targeting Node and Graphql-ws subscriptions
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:
tscerror: using global Headers type definition instead of node-fetch Headers type definition- runtime error: not passing the
webSocketImplto thecreateClientfunction
This PR fixes both issues: https://github.com/graphql-editor/graphql-zeus/pull/390 (there's an open question about the apiSubscription function)