From d960a9470d0ec0048c9cc0e6c7d79e67f34a7fe9 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Thu, 27 Jan 2022 20:11:09 -0800 Subject: [PATCH] Create notifications.ts --- v2/functions/src/notifications.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 v2/functions/src/notifications.ts diff --git a/v2/functions/src/notifications.ts b/v2/functions/src/notifications.ts new file mode 100644 index 0000000..7b283c1 --- /dev/null +++ b/v2/functions/src/notifications.ts @@ -0,0 +1,14 @@ +// import * as functions from "firebase-functions"; + +// exports.inviteUserToTeam = functions.firestore +// .document('teamMembers/{userId}') +// .onCreate((snap, context) => { +// // Get an object representing the document +// // e.g. {'name': 'Marie', 'age': 66} +// const newValue = snap.data(); + +// // access a particular field as you would any JS property +// const name = newValue.name; + +// // perform desired operations ... +// });