如何使"Cloud Functions shell"与Firestore一起使用 [英] How to get `Cloud Functions shell` work with Firestore

查看:48
本文介绍了如何使"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.

这篇关于如何使"Cloud Functions shell"与Firestore一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆