Skip to content

Subscriptions with redis #259

Answered by enisdenjo
ajmerik121 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, the error messages describes exactly what the issue is, you've read it right?

const roots = {
  query: { hello: () => 'Hello World!' },
  subscription: {
-   messages: {
-     subscribe: async () => await pubsub.asyncIterator('MESSAGE_ADDED'),
-   },
+   messages: async () => await pubsub.asyncIterator('MESSAGE_ADDED'),
  },
};

See also: #205 (comment).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ajmerik121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants