November 2017
Beginner to intermediate
288 pages
7h 33m
English
Once you've successfully configured your project, let's start integrating the function within our online store.
exports.updateStats = functions.database.ref('/purchases/{pushId}/item').onWrite(event => { const addedPurchases = event.data.val(); const status = `${addedPurchases.name.toUpperCase()} - is a ${addedPurchases.type} - is PENDING`; return event.data.ref.parent.child('status').set(status); });
~> firebase deploy --only functions ...
Read now
Unlock full access