How can I use the context during a subscription.trigger? #5099
Replies: 1 comment 1 reply
-
Hi! Good question. I'm honestly not sure what that'd come in handy for. Here's the source: graphql-ruby/lib/graphql/subscriptions.rb Lines 60 to 93 in a814873 It looks like there, it would be used for finding the field that the trigger refers to, so it would be passed to It's also passed to And I think this is a red herring, it's used when running the initial subscription, but not used for subsequent updates: graphql-ruby/lib/graphql/subscriptions/event.rb Lines 46 to 60 in a814873 Is there something particular you're hoping to use it for? Or something you tried but didn't work? |
Beta Was this translation helpful? Give feedback.
-
The subscription trigger has the following parameters:
What is the use case of the context here? In my situation, I want to handover some additional context to the possible executed subscription?
Beta Was this translation helpful? Give feedback.
All reactions