如何使"Cloud Functions shell"与Firestore一起使用
问题描述:
运行:
firebase experimental:functions:shell
当我尝试这样调用函数时:
When I try to call my function like so:
sendEmail('data', {params: 'commentId:12'})
我得到:
Info: Function crashed
TypeError: Cannot use 'in' operator to search for 'exists' in data
Info: Function crashed
TypeError: Cannot use 'in' operator to search for 'exists' in data
如何在Firestore
触发的云函数上启动新的onWrite
How does one initiate the new onWrite on a Firestore
triggered cloud function
答
版本为运行Firestore在本地运行.
With version 3.15.1 of the Firebase CLI, you can now run Firestore functions locally.