I am newbie to graphql and trying to create a middleware with apollo graphql server 3 and graphql-ws. The query and mutation are working fine but there a lot of issues with subscription. The official documentation of graphql state that it is better to work with graphql-ws
instead of subscriptions-transport-ws
.
Subscription is working fine with nodejs but when tried to a Java project especifically with webflux doesn't. For test the API i am using Altair and the websocket seem like is connected but from server there are some logs that are contradictory.
Middleware Nodejs : https://github.com/kamboj652/graphql-middleware
Nodejs Server : https://github.com/kamboj652/nodejs-graphql-server
Spring Boot Server : https://github.com/spring-projects/spring-graphql/tree/main/samples --> webflux-websocket
Edit
The idea behind the question is this. I think a picture speaks more than 1000 words.