use of io.smallrye.graphql.client.impl.typesafe.QueryBuilder in project smallrye-graphql by smallrye.
the class VertxTypesafeGraphQLClientProxy method request.
private JsonObject request(MethodInvocation method) {
JsonObjectBuilder request = jsonObjectFactory.createObjectBuilder();
String query = queryCache.computeIfAbsent(method.getKey(), key -> new QueryBuilder(method).build());
request.add("query", query);
request.add("variables", variables(method));
request.add("operationName", method.getName());
log.debugf("request graphql: %s", query);
JsonObject result = request.build();
log.debugf("full graphql request: %s", result.toString());
return result;
}
Aggregations