Hi,
I’m trying to develop REST API using quarkus that will expose reactive API.
In Quarkus, I saw reactive can be returned using Uni/Multi,
@GET
@Path("/get/{name}")
public Uni getName(@PathParam String name) {
return service.getName(name);
}
but in couchbase Java SDK,
I saw Reactive Query can be achived using Mono/ Flux.
Mono result = cluster.reactive().query(“select * from bucket use keys ‘xxx’”);
result .flatMapMany(ReactiveQueryResult::rowsAsObject)
.subscribe(row -> System.out.println("Found row: " + row));
How to map from couchbase mono to uni that will return response from my REST API?
Thanks,