menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
Team
Posts
Members
Info

Update Query "prev" is undefined

Hi, I'm trying to debug an issue with a subscription We have code similar to below...and we are trying to update the previous query (basically replace it with new content). But the previous query is undefined. We are trying to figure out where to look as to why prev might be…

thumbsup
0
message-simple
1

Using apollo-link-ws with webpack pulls in node dependencies

I'm not sure how others are dealing with this, but whenever I try to import subscriptions-transport-ws as the Apollo Client documentation suggests, webpack follows the dependencies down and runs into node libraries. I'm not exactly sure how to get around this. apollo-link-ws…

thumbsup
0
message-simple
0

Setting up WSS for subcriptions with heroku ACM

I host my server on heroku and takes advantage of its automaticated certificate management (ACM) service to set up https communication. My problem is setting up a secured websocket communication for subscriptions (wss). I'm supposed to provide the key and certificate at the…

thumbsup
0
message-simple
0

Discovering/monitoring subscribers, and SubscriptionServer events

I have subscriptions on my ApolloServer implementation. So far I'm only able to see who is subscribed to what within the resolvers, yet these are only invoked if a 'post' [e.g. mutation] occurs. Is there some way to access info about subscribers from within the core of the…

thumbsup
0
message-simple
0

Subscriptions deduplication

Is there such a thing? I'm using same query on multiple components and those are deduplicated nicely, however if I use same subscription on multiple components, each instance will initialize new subscription over websocket. This means that on some server event, client will…

thumbsup
0
message-simple
4

How can return data to websocket client in subscription, onConnect?

I need to pass new accessToken to the client when the old one is invalid but refreshToken is still valid like this: How i can do this?

thumbsup
0
message-simple
0

Problem integrating callback-based subscription into GraphQL subscribe

I have some code like this: subscribe: async (_, args, context, info) => { let notification_feed = await client.feed("notification", args.persona_id); asyncify((callback) => …

thumbsup
0
message-simple
0

has anybody got apollo-server + subscriptions working in AWS Lambda?

I found this library: https://github.com/michalkvasnicak/aws-lambda-graphql but it seems kind of half-baked, and doesn't play super-well with the rest of the Apollo server stack. If AWS Lambda is the wrong approach, does anybody have an idea how best to deploy apollo…

thumbsup
0
message-simple
4

How to test component with subscribeToMore?

I am using MockedProvider for testing a component. When using subscribeToMore from the Query I always get: My Query component here: How can I fix this? Please help. Thanks

thumbsup
0
message-simple
2

onConnect return does not add context

Hi, I am trying to make a realtime multiplayer game with graph subscriptions. As a part of my project I want to handle disconnecting - whenever a connection with user is lost, I want to remove the player from active players list. To do this I wanna generate a sessionId…

thumbsup
0
message-simple
2