graphql-typed-client icon indicating copy to clipboard operation
graphql-typed-client copied to clipboard

graphql subscription is not working

Open vishal847 opened this issue 5 years ago • 0 comments

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);
    })
})

vishal847 avatar Jul 31 '20 11:07 vishal847