Using netflix-dgs with WebFlux

Using netflix-dgs with WebFlux


0

This might be a dumb questions, with me being a novice getting starting with the whole reactive programming methodology.
Task:
But I’m working on developing a Spring Boot Netflix DGS based GraphQL API
Implementation:
So I am using the standard netflix platform dgs libraries and scalars and all that, and in addition i just added "spring-boot-starter-webflux" dependency.
And then in the DgsQuery method i’m returning Mono instead of just String

    ...
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-webflux</artifactId>
    </dependency>
    ....

in the POM
and

@DgsQuery
public Mono<String> sayHello() {
    return Mono.just("Hello, World!");
}

Question:
Will that be enough to call the graphql API "reactive"?


Load 3 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *