How do I add a child after .onWrite
using Cloud Functions?
Code skeleton:
exports.addNewValue = functions.database.ref('/messages/{pushId}')
.onWrite(event => {
// add child newValue: "randomValue" to the newly added key above
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…