since you are in hurry, so here is a hack -
var isNoRequest = con.requestQueue_.length===0;
here con is the connection
you can wrap the above code in a setTimeOut with some time & check. Hope this will help you.
var results = select({
from: MyTable,
where: {
userName: some_value
}
});
var count = results.length;
var usersName = results.map((result) => {
result.userName;
});