Continuing the discussion from N1QL DELETE DML Statement:
@perrin.bignoli is seeing a statement return without completing. is there additional code needed to make this call sync as opposed to async.
public static Observable executeQueryAsString(AsyncBucket bucket, String queryAsString) {
return bucket.query(N1qlQuery.simple(queryAsString))
.flatMap(result → result.rows()
.map(row → new JsonObject(row.value().toString()))
.collect(JsonArray::new, JsonArray::add));
}