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 after mutation #60

Open
Andrew1325 opened this issue Apr 7, 2019 · 0 comments
Open

Subscriptions not showing after mutation #60

Andrew1325 opened this issue Apr 7, 2019 · 0 comments

Comments

@Andrew1325
Copy link

I know this issue has been raised before in #14 but I feel this must be a different problem as the previous issue is over a year old and appears to have been resolved.

I have followed the tutorial exactly and everything works except the subscriptions. They sit there saying 'Listening...' but never show data.

This is the vote subscription

function newVoteSubscribe (parent, args, context, info) {
  return context.prisma.$subscribe.vote({ mutation_in: ['CREATED'] }).node()
}

const newVote = {
  subscribe: newVoteSubscribe,
  resolve: payload => {
    return payload
  }
}

which appears to be as it should compared to the repo on here and I don't get an error, simply no response in playground. I've tried adding where: { mutation_in... and an empty object in vote() but it makes no difference. The newLinkSubscribe is the same.

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

1 participant