dgs-examples-webflux icon indicating copy to clipboard operation
dgs-examples-webflux copied to clipboard

How to use Flux and Mono as the return type of methods annotated by @DgsQuery and @DgsMutation

Open shiyouping opened this issue 3 years ago • 1 comments

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.

shiyouping avatar May 29 '21 15:05 shiyouping