Skip to content

graphql subscription is not working  #34

@vishal847

Description

@vishal847

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions