Category : graphql-subscriptions

I have a subscription, let’s say postIsRead, which signifies a post in a list of posts as currently being read, such as: Post: { id: 1, read: true } …or whatever. Only one post can be read at once. Anyways here’s the updateQuery on the subscription via subscribeToMore. updateQuery: (prev, { subscriptionData }) => { ..

Read more