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

graphql subscription is not working #34

Open
vishal847 opened this issue Jul 31, 2020 · 0 comments
Open

graphql subscription is not working #34

vishal847 opened this issue Jul 31, 2020 · 0 comments

Comments

@vishal847
Copy link

vishal847 commented Jul 31, 2020

i have deployed my hasura app on hasura-cloud, and trying to call a subscription using the generated typed client, but somehow there is no log for the subscription on the client.

image

this is my query in graphql console, working fine, but requesting through a chained query is not really working

app.listen(PORT, () => {
	console.log('Server is listening on port :', PORT)
    console.log('adding subscriptions');
    graphqlClient.chain.subscription.users().execute({email:1,id:1,created_at:1}).subscribe((data)=>{
        console.log('subscription users->', data);
    })
})
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