Skip to content

Instantly share code, notes, and snippets.

@maail
Last active June 6, 2020 04:23
Show Gist options
  • Save maail/5e136e4f1c0d715ed1d22da8e5b75861 to your computer and use it in GitHub Desktop.
Save maail/5e136e4f1c0d715ed1d22da8e5b75861 to your computer and use it in GitHub Desktop.
onDocumentCreate
/// on post created
exports.documentCreate = functions.firestore
.document('document/{documentId}')
.onCreate((change, context) => {
console.log("Document created")
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment