-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support firestore cloud function triggers (#2480)
* support firestore cloud function triggers * document firestore trigger specifics
- Loading branch information
1 parent
c293447
commit 7dd80d7
Showing
4 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Background Cloud Function to be triggered by Firestore. | ||
* | ||
* @param {object} event The Cloud Functions event. | ||
* @param {function} callback The callback function. | ||
*/ | ||
exports.helloFirestore = function (event, callback) { | ||
const messageId = event.params.messageId; | ||
|
||
console.log(`Received message ${messageId}`); | ||
|
||
callback(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters