Publishing to a subscription outside of TypeGraphQL #994
-
I want to trigger a subscription from outside a Resolver class (inside of an Express handler). I checked the source but couldn't find anything that hinted at a way to create a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use custom pub sub instance: And put that in container or just export and import directly. |
Beta Was this translation helpful? Give feedback.
-
I am using express js and type-graphql, but the example implementation doesn't work for me. |
Beta Was this translation helpful? Give feedback.
You can use custom pub sub instance:
https://typegraphql.com/docs/subscriptions.html#using-a-custom-pubsub-system
And put that in container or just export and import directly.