The driver, and usage example, is available here

The java driver takes queries as string of JavaScript, for example
conn.r("javatest.s = 'hello'");

Additionaly to .r(), the following functions are available

See the below table for the formats

Request function Description Query example result
.r() Data only object await db.obj1.r() { “a”:1, “b”:”b” } as a parsed object
.rs() Data only json string await db.obj1.rs() { “a”:1, “b”:”b” } as a JSON string
.rf() Filled object await db.obj1.rf() { “a”:1, “b”:”b”, “c” : “function() { return 3; }”, “d” : “$0” } as a parsed object
.rfs() Filled json string await db.obj1.rfs() { “a”:1, “b”:”b”, “c” : “function() { return 3; }”, “d”:”$0″ } as a JSON string
.rcs() Complete js string await db.obj1.rcs() JS string: { “a”:1, “b”:”b”, “c” : function() { return 3; } };$0.d=$0;