Repository navigation
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 |
Answered by
MichalLytek
Aug 27, 2021
Replies: 2 comments
|
You can use custom pub sub instance: And put that in container or just export and import directly. |
0 replies
Answer selected by
jimbuck
|
I am using express js and type-graphql, but the example implementation doesn't work for me. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.