This guide shows examples of functions that are triggered when you make changes to a document inside of a specified collection.
Before you begin
Before you run the sample code in this guide, you'll need to do the following:
Examples
The following examples demonstrate how to write functions that respond to a Firestore trigger.
Example 1: Hello Firestore function
The following sample prints the fields of a triggering Firestore event: