I have been having some really weird issues with my app over the past 24 hours. I think I have narrowed it down to some issues with scriptDB.
My database is empty yet results.getsize() says it is not empty.
Here is what I run in my code:
var db = ScriptDb.getMyDb();
var results = db.query({});
Logger.log(results.getSize());
while (results.hasNext()) {
var result = results.next();
Logger.log(Utilities.jsonStringify(result));
}
My log shows:
38.0
but nothing else is logged. So where are those 38 results?