dgs-examples-webflux
dgs-examples-webflux copied to clipboard
How to use Flux and Mono as the return type of methods annotated by @DgsQuery and @DgsMutation
I tried to use Flux and Mono from projectreactor as the return type of methods annotated by @DgsQuery, but it doesn't work. The query always returns null. I already compared webflux and mvc examples, and it shows that methods annotated by @DgsQuery are almost the same. Looks like it doesn't make sense to use webflux. Could you please let me know if it's possible to use Flux and Mono with @DgsQuery and @DgsMutation? If possible, how? Thanks in advance.