Adding onOperation outside of SubscriptionServer constructor #5023
Unanswered
findlay-hannam
asked this question in
Q&A
Replies: 1 comment
-
Just to let you know, we are currently planning to remove the surface-level direct integration between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an express server with the apollo middleware integration. I needed to integrate with a SSE API in the back-end, so I'm adding subscriptions.
I've set up subscriptions using installSubscriptionHandlers. When a client subscribes to the graphql, I want to use the variables to execute a function which will be used by the subscription.
I think onOperation is the best way to go about this, but I can't see a way to register the hooks, or specify the url, while using
installSubscriptionHandlers
. Is this level of control possible? Or is there some other method I should be using?Beta Was this translation helpful? Give feedback.
All reactions