Migrating from 'express-graphql' (a non-default WS Subscriptions URL) #2739
-
Hi there, I'm currently moving from 'express-graphql' into 'graphql-yoga' In the former code we use a custom URL for the subscriptions, something like: And we could pass this info to graphiql when calling the method: graphiqlConfig = { However, I'm struggling to 'inject' the subscription endpoint when calling the method: Hence, my question is: Can I change/override the default subscription endpoint when configuring Yoga? if so, how? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey hey, sorry for the delayed answer. If you're following the graphql-ws example , you can just change the |
Beta Was this translation helpful? Give feedback.
Hey hey, sorry for the delayed answer. If you're following the graphql-ws example , you can just change the
graphqlEndpoint
option increateYoga
because the WS route is the same as regular HTTP.