@Route(path = "/v1/graphql", produces = "application/json", methods = Route.HttpMethod.POST)
public Uni<Buffer> toHasura(RoutingContext rc, @Body String query) {
//
}
I'm trying to redirect requests to hasura with my app, but I'm getting this error:
Caused by: java.lang.IllegalStateException: No parameter injector found for parameter 1 of route method io.smallrye.mutiny.Uni<io.vertx.mutiny.core.buffer.Buffer> toHasura(io.vertx.ext.web.RoutingContext rc, java.lang.String query) declared on CLASS bean [types=[org.acme.reactive.routes.ProxyRout, java.lang.Object], qualifiers=[@Default, @Any], target=org.acme.reactive.routes.ProxyRout]
I've tried to add @Body annotation, the error was gone, but in swagger I still don't see the opportunity to add any body to the request