Hi All,
I am new to Gremlin, I am a backend developer in java. I just want to execute the query and get the output of the gremlin query in JSON format. I have searched a lot but I didn't get any solutions.
The solution which is present on the internet is
ResultSet results = client.submit(query);
CompletableFuture<List<Result>> completableFutureResults;
Result completableResults;
CompletableFuture<Map<String, Object>> completableFutureStatusAttributes;
List<Result> resultList;
Map<String, Object> statusAttributes;
try{
completableFutureResults = results.all();
completableFutureStatusAttributes = results.statusAttributes();
resultList = completableFutureResults.get();
statusAttributes = completableFutureStatusAttributes.get();
}
catch(ExecutionException | InterruptedException e){
e.printStackTrace();
break;
}
completableResults = result;
String stringresult = completableResults.toString();
I am looking for any support that gremlin is having with java???
Please suggest something.
Thanks
Sumit