You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You probably want to create the handler once and pass the same instance to all of them, otherwise you making copies of a bunch of internal state like the query cache.
I'm trying to use gqlgen with gin (https://github.com/gin-gonic/gin).
I'm using the code below but there is a question about the subscription endpoint.
As you can see I need to repeat the lines:
Is this correct?
Is there a way to have two separate handlers: one for graphql engine and one for subscriptions engine?
Also because in the future I'll need two separate endpoint. And from what I can see here:
gqlgen/handler/playground.go
Lines 25 to 38 in 4bda3bc
Today there isn't a way to change the default Playground
subscriptionEndpoint
?Maybe a config like this below?
The text was updated successfully, but these errors were encountered: