CloudFunctions for Firebaseの一つの利点は、他のFirebase サービスとの強力な連携です。 Functionの起動トリガーとして、各サービスのイベントを利用できます。 今回はサービスごとに多様にあるトリガーをまとめてみました。 ここで紹介したコードはこちらのGithubリポジトリにあります。 https://github.com/kawamataryo/firebase-functions-trigger-list Firestore #onCreate document()で指定したコレクションへのドキュメントの追加をトリガーに関数が実行される。 export const onCreate = functions.firestore .document("/users/{userId}") .onCreate(async (snapshot, context