Skip to content Skip to sidebar Skip to footer

Graphql-subscriptions: How To Get Published Object In Subscription Resolver

I am using an express server with GraphQL subscriptions and subscriptions-transport-ws. I have set up the subscription with a given channel: After a mutation is received a process

Solution 1:

The object used in publish method as payload is then root parameter of your subscription resolver method - so in this case this is _ in your testRunChanged resolver function. You should simply do return _.


Post a Comment for "Graphql-subscriptions: How To Get Published Object In Subscription Resolver"