Firebase - Cloud Firestore Trigger Idempotency
The Firebase docs for Cloud Firestore Triggers mentions here that functions triggered by an event from the Firestore database should be idempotent. Is there some kind of event id t
Solution 1:
Each event in Cloud Functions comes with a context. Besides the commonly used params
and auth
objects it also comes with a eventId property which is a unique identifier for the event. (the link goes to the API docs for EventContext).
Baca Juga
- How To Solve Firebaseerror: Expected First Argument To Collection() To Be A Collectionreference, A Documentreference Or Firebasefirestore Problem?
- How To Solve Firebaseerror: Expected First Argument To Collection() To Be A Collectionreference, A Documentreference Or Firebasefirestore Problem?
- Cloud Firestore: Add Collection And Sub Collection In One Go
Post a Comment for "Firebase - Cloud Firestore Trigger Idempotency"