DEV Community

Discussion on: Build a chat app with GraphQL Subscriptions & TypeScript: Part 2

Collapse
 
jackherizsmith profile image
Jack • Edited

I love this thank you!

I think there might be an error at the end of your code in Adding our subscription - the subscription resolver messageSent is of type Chat {} but get the error:

A function whose declared type is neither 'void' nor 'any' must return a value.
Enter fullscreen mode Exit fullscreen mode

Let me know if this is correct or I have made a mistake :)