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"?

Bala Kumar
  • 355
  • 2
  • 4
  • 12

0 Answers0