/** * Executes the GraphQL query on the GraphQL schema proxy using the provided variables. * * @param graphqlQuery the graphql query * @param resultHandler the result handler with the graphql query result on success, or a failure */ @Override public void queryWithVariables(String graphqlQuery, JsonObject variables, Handler<AsyncResult<QueryResult>> resultHandler) { try { queryNonBlocking(graphqlQuery, variables, resultHandler); } catch (RuntimeException ex) { resultHandler.handle(Future.failedFuture(ex)); } }