Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 使用Google Apps脚本如何仅从ScriptDb检索具有属性/密钥的对象_Google Apps Script - Fatal编程技术网

Google apps script 使用Google Apps脚本如何仅从ScriptDb检索具有属性/密钥的对象

Google apps script 使用Google Apps脚本如何仅从ScriptDb检索具有属性/密钥的对象,google-apps-script,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 dat

是否可以查询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."

有什么想法吗?

results=db.query{key:db.anyValue};当然-错过了!ScriptDB已被弃用。相关的