# All channels
Sachin D. Shinde@sachin-shinde
How to get middlewares on ApolloServerBase?
Hi there, I'm trying to apply my own middleware for my ApolloServerBase that runs on a Lambda, and I'm hoping to do so by using applyMiddleware from graphql-middleware. I've taken the approaches below: When creating the ApolloServer, I would then assign schemaWithMiddleware to…
Issue with using keepAlive if set for 20 seconds or more
Having a bit of trouble with keepAlive for subscriptions. When ever I set a time to 20 seconds the listening subscriptions errors out. Here is ApolloServer setup In my local environment when I do not set keepAlive it will stay open indefinitely. If I set it at 10000 works great.…
How to get number of all socket connecting to apollo server?
• I need to handle events "user is now online" and "user is now offline" on GraphQL Apollo Node.js server. • Current, when user connect, disconnect, I store userId. But it not correct when deploying server. What's the best way to do it?
Authentication using access tokens with multiple dataSources
I have a apollo server that uses datasource for fetching data from a third-party API. The third party API needs Authorization via access_token, what is the best way to handle authorisations (access_token and refresh_tokens) given I may need to add such several third-party…