使用Google Apps脚本如何仅从ScriptDb中检索具有属性/键的对象

时间:2013-01-11 19:04:03

标签: google-apps-script

是否可以查询ScriptDb以仅返回具有特定属性/密钥的那些对象?

results = db.query({key: db.not(null)}); // always triggers error "We're sorry, a server error occurred. Please wait a bit and try again."
results = db.query({key: db.not(undefined)}); // returns all objects in the database

反之亦然:

results = db.query({key: undefined}); 
results = db.query({key: null});         // both these cause an error on any of the ScriptDbResult methods "Your query object contains an invalid component."

有什么想法吗?

0 个答案:

没有答案