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