title: How to generate pushId within cloud function for firebase?
body: <p>I can generate pushId as follows </p>
  
  <pre><code>var myRef = firebase.database().ref().push();
  var key = myRef.key();
  </code></pre>
  
  <p>In normal front-end firebase javascript function. But I want to generate pushId within cloud function for firebase. Is there a way to do this?</p>