MCPcopy Create free account
hub / github.com/dgraph-io/dgraph4j / runDQL

Method runDQL

src/main/java/io/dgraph/DgraphAsyncClient.java:262–273  ·  view source on GitHub ↗

Runs a DQL query or mutation using the RunDQL RPC. @param request a fully-built RunDQLRequest @return CompletableFuture with the Response

(DgraphProto.RunDQLRequest request)

Source from the content-addressed store, hash-verified

260 * @return CompletableFuture with the Response
261 */
262 public CompletableFuture<DgraphProto.Response> runDQL(DgraphProto.RunDQLRequest request) {
263 final DgraphGrpc.DgraphStub stub = anyClient();
264
265 return runWithRetries(
266 "runDQL",
267 () -> {
268 StreamObserverBridge<DgraphProto.Response> bridge = new StreamObserverBridge<>();
269 DgraphGrpc.DgraphStub localStub = getStubWithJwt(stub);
270 localStub.runDQL(request, bridge);
271 return bridge.getDelegate();
272 });
273 }
274
275 /**
276 * Runs a DQL query or mutation with default options.

Callers

nothing calls this directly

Calls 6

anyClientMethod · 0.95
runWithRetriesMethod · 0.95
getStubWithJwtMethod · 0.95
getDelegateMethod · 0.95
setBestEffortMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected