如何让`Cloud Functions shell`与Firestore一起使用

时间:2017-10-16 08:40:29

标签: firebase google-cloud-functions google-cloud-firestore

运行:

firebase experimental:functions:shell

当我尝试这样调用我的函数时:

sendEmail('data', {params: 'commentId:12'})

我明白了:

Info: Function crashed TypeError: Cannot use 'in' operator to search for 'exists' in data

如何在Firestore触发的云功能上启动新的onWrite

1 个答案:

答案 0 :(得分:10)

使用Firebase CLI的3.15.1版本,您现在可以run Firestore functions locally