Posted by pcpshephertz:
Documentation at https://github.com/dgraph-io/dgraph4j#run-a-query
contains error.
Instead of Response res = dgraphClient.newTransaction().query(query, vars);
it should be
Response res = dgraphClient.newTransaction().queryWithVars(query, vars);
.
I will be happy to request a pull and commit if you verify my finding is correct.