We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apollo-link-logger
node
npm
yarn
Relevant code or config
const webSocketLink = from(webSocketChain); this.linkWS = split() // to decide HTTP or WS
What you did: Added apollo-logger before wsLink in chain
What happened: TypeError: forward(...).map is not a function
The text was updated successfully, but these errors were encountered:
This issue still exists. It happens when you have mutations and queries running in WS
Sorry, something went wrong.
same here; took me a while to find the culprit. In detail, I have a setup like this:
const link = from([ stateLink, // withClientState(...) errorLink, // onError(...) ...(__DEV__ ? [apolloLogger] : []), // <-- removing this fixes the error split( ({ query }) => { const { kind, operation } = getMainDefinition(query); return kind === 'OperationDefinition' && operation === 'subscription'; }, wsLink, // new new WebSocketLink(...) httpLink, // new new HttpLink(...) ), ]);
and I use subscribeToMore somewhere. Result is TypeError: forward(...).map is not a function and the subscription not working.
subscribeToMore
TypeError: forward(...).map is not a function
No branches or pull requests
apollo-link-logger
version: ^1.2.3node
version: v8.9.3npm
(oryarn
) version: yarn 1.6.0Relevant code or config
What you did: Added apollo-logger before wsLink in chain
What happened:
TypeError: forward(...).map is not a function
The text was updated successfully, but these errors were encountered: