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 ... +// });