-
Hi Everyone I have a working GraphQL using DGS Framework with WebFlux and is working like a charm. Spring Boot 2.6.0 But right now I need to introduce some subscriptions. I read the documentation and to my existing dependencies:
I've added this: When I run the application It throws this error:
So searching a bit it seems that I need to add also the WebMVC dependencies of spring: But when I do that of course I have a conflict between WebMVC and WebFlux and the application throws this:
So then I go to the example project in github and first I am seeing that the gradle dependencies don't even use the starters of DGS framework and they are not using even the WebFlux?
Any help would be very really appreciated, what I am doing wrong? Or the framework does not support WebFlux and Subscriptions with WebSockets? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I will answer myself
If you use 2 starters of DGS it will not work. |
Beta Was this translation helpful? Give feedback.
I will answer myself
Adding just this new dependency make it work:
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.netflix.graphql.dgs:graphql-dgs-subscriptions-websockets-autoconfigure")
If you use 2 starters of DGS it will not work.
That way you have WebFlux and WebSockets subscriptions support.