Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscriptions not showing new additions to the database #14

Closed
tlgreg86 opened this issue Feb 2, 2018 · 3 comments
Closed

Subscriptions not showing new additions to the database #14

tlgreg86 opened this issue Feb 2, 2018 · 3 comments

Comments

@tlgreg86
Copy link

tlgreg86 commented Feb 2, 2018

I went through the tutorial and am able to perform queries and mutations on it but when I run subscription in the playground it doesn't output new anything when I add new links to the database. I removed the where filter and it still doesn't work. Considering everything else works this seems to be an issue with the tutorial.

@JonathanSum
Copy link

Same with me! :D

@nikolasburk
Copy link
Contributor

Thanks for reporting this @tlgreg86 and @JonathanSum! Apparently there were some underlying issues in how subscriptions were handled in graphql-yoga and graphql-tools. I'll take a look today and keep you posted here!

@nikolasburk
Copy link
Contributor

So, the problem is due to this issue: https://github.com/graphcool/prisma/issues/1734

I temporarily added a fix by passing an empty filter to the subscription resolvers: https://github.com/howtographql/graphql-js/blob/master/src/resolvers/Subscription.js

I will update it again once the issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants