Created
June 27, 2017 09:33
-
-
Save nanborklabs/4bf6014cb9b7773e4c7f0efc9e4caf0d to your computer and use it in GitHub Desktop.
Parent of Snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.deliveryUpdate = functions.database.ref('/orders/{pushId}/deliveryStatus').onWrite(snapshot => { | |
// Fires up , if Delilery status is Changed, to know Whihch Key | |
console.log("PushId/Parent Key: "+ snapshot.data.ref.parent.key); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment