Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get `Cloud Functions shell` work with Firestore

Running:

firebase experimental:functions:shell

When I try to call my function like so:

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

I get:

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

How does one initiate the new onWrite on a Firestore triggered cloud function

like image 358
Gal Bracha Avatar asked Oct 16 '17 08:10

Gal Bracha


1 Answers

With version 3.15.1 of the Firebase CLI, you can now run Firestore functions locally.

like image 197
Doug Stevenson Avatar answered Sep 18 '22 12:09

Doug Stevenson