You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have troubles with passing a connectionParams for graphql-subscriptions between two or more endpoints. I use Apollo-Server 2 and Apollo-Link-WS 1.0.9. I use a microservice architecture with apollo stack and schema stitching. I have a few graphql-endpoints and a gateway for all requests and I'm stuck with passing connectionParams for subscriptions from gateway-endpoint to graphql-endpoint.
How can I pass connectionParams or subscription-context per each subscription execution to endpoint which is connected with gateway by the apollo-link? It's needed for access control and authentication in subscriptions.
Below I attached code with a gateway connecting to an endpoint.
I'm having the exact same problem and have tried different approaches. Most recently this https://gist.github.com/josephktcheung/cd1b65b321736a520ae9d822ae5a951b but managing websockets like that with multiple endpoints doesn't seem like the most appropriate way.
So I'm still looking for a solution to this problem...
I have troubles with passing a connectionParams for graphql-subscriptions between two or more endpoints. I use Apollo-Server 2 and Apollo-Link-WS 1.0.9. I use a microservice architecture with apollo stack and schema stitching. I have a few graphql-endpoints and a gateway for all requests and I'm stuck with passing connectionParams for subscriptions from gateway-endpoint to graphql-endpoint.
How can I pass connectionParams or subscription-context per each subscription execution to endpoint which is connected with gateway by the apollo-link? It's needed for access control and authentication in subscriptions.
Below I attached code with a gateway connecting to an endpoint.
The text was updated successfully, but these errors were encountered: