Thursday 20 April 2017

How to generate pushId within Firebase cloud function?

I can generate pushId as follows

var myRef = firebase.database().ref().push();
var key = myRef.key();

in normal front-end firebase javascript function. But I want to generate pushId within firebase cloud function. is there a way to do this?



via isuru

No comments:

Post a Comment