Subscriptions with redis #259
-
Why do I get always get this error when I try to listen to events from redis Redis library for subscriptions Error Example schema Example resolvers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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). |
Beta Was this translation helpful? Give feedback.
Hey there, the error messages describes exactly what the issue is, you've read it right?
See also: #205 (comment).