All Questions
6 questions
0
votes
1
answer
72
views
Apollo graphQL subscription Which package to use
I see for Apollo graphql if i wan to use plain Apollo subscription, I can import PubSub from Apollo-server or graphql-subscription . Wondering which one is correct to use ?
0
votes
1
answer
797
views
Apollo useSubscription doesn't work for new windows
This is my first time using useSub and I noticed that although my backend sends it's responses to the client (at least the console.log shows it is). The client using useSub doesn't do anything. I ...
1
vote
3
answers
2k
views
How to prevent re-rendering with useSubscription()?
Many of you might have heard of GraphQL. It provides QUERY and MUTATION. Also it supports SUBSCRIPTION as 100% replacement of web socket. I'm a big fan of GraphQL and hooks. Today I faced an issue ...
0
votes
1
answer
385
views
How to create AND stop unique timer for each user in GraphQL mutations/resolvers
I'm making an app which requires that I give each user a 6 second interval timer that will complete actions every 6 seconds. I already have it working that the timers can be unique based on the ...
1
vote
1
answer
2k
views
Apollo GraphQL subscription response doesn't handle nested queries
I have the following GraphQL subscription that works fine:
subscription voucherSent($estId: Int!) {
voucherSent(estId: $estId) {
id
name
usedAt
sentAt
}
}
But the following sends ...
0
votes
1
answer
1k
views
Making a real time application using graphql subscriptions with React and Apollo
I am building a real-time application using React, Apollo and GraphQL. My plan was that a component will issue a query and then subsequently depend on subscriptions to keep the client cache consistent ...