Skip to content

Instantly share code, notes, and snippets.

View Fbada006's full-sized avatar
🎯
Leveling up

Ferdinand Bada Fbada006

🎯
Leveling up
View GitHub Profile
const functions = require('firebase-functions');
// Firebase admin
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
// The snapshot to the user's tokens.
// /* Trigger when a new document is created */
exports.createdMatchNotification = functions.firestore
// Add the document path to your collection mine is called matches
.document('match/{documentId}')
.onCreate((snap, context) => {