How to make `Cloud Function shell` work with Firestore

Duration:

firebase experimental:functions:shell

When I try to call my function as follows:

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

I get:

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

How to initiate a new onWrite in a Firestorerunning cloud function

+4
source share
1 answer

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

+8
source

Source: https://habr.com/ru/post/1687539/


All Articles