Firebase on call函数(functions.https.onCall)未将上下文参数值发送到安全规则。这意味着如果我们从UI调用一个firebase on call函数来更新firestore数据库中的内容,我需要在该函数中执行所有的安全检查,并使用admin sdk来更新firestore数据库。我不能使用firebase sdk和firestore安全规则进行身份验证更新。().collection('Or
使用react with 作为我作为本地运行的数据库,使用的是用jest.进行的脚本测试
现在,当在浏览器中从我的react应用程序调用firestore、set()和get()函数时,一切都正常。但是,当单元测试相同的调用时,只有set()允诺才能解决。get()承诺永远不会解决问题(“测试超过了5000 ms的超时时间,经过超时>100000000的测试),模拟器接收get()请求时没有任何问题。”(它会登
我正在尝试使用新的firebase仿真器套件,并尝试结合使用函数和firestore仿真器,以使用Jest对我的firebase函数进行完整的功能测试。我有一个像这样定义的firebase函数 .document(`users/{userId;import * as firebase from "
Function not found error: Name: [get].; Error: Invalid argument provided to call.Function: [get], Argument: ["||invalid_argument||"]。= null function isAdmin() { "admin" in get(/databases/$(datab