title: read data from childByAutoId in node.js
body: <p>I am trying to read data from firebase that is saved by childByAutoId(). I can successfully read the top half, but the reads what the childByAutoId() is. for example.</p>
  <p><a href="https://i.stack.imgur.com/wQpqw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wQpqw.png" alt="image one" /></a></p>
  <p>and in my firebase functions is</p>
  <p><a href="https://i.stack.imgur.com/SRsZY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SRsZY.png" alt="image 2" /></a></p>
  <p>the logger -- uid is BoSwank... is correct, however on the line below for</p>
  <p>logger -- workerId is -MBauxL.... is incorrect. That is the value of the childByAutoID() and it should be hkKplzF...</p>
  <p>How I am trying to read this data is below.</p>
  <pre><code>exports.observeNotifications = functions.database.ref('/notifications/{cardUID}/{workerId}').onCreate((snapshot, context) =&gt; {
    var uid = context.params.cardUID;
    var workerId = context.params.workerId;
  
    console.log('LOGGER --- uid is ' + uid);
    console.log('LOGGER --- workerId is ' + workerId)
  })
  </code></pre>
  <p>I thought changing
  /notifications/{cardUID}/{workerId} to /notifications/{cardUID}/{cardUID/workerId}</p>
  <p>and then changing</p>
  <p>var workerId = context.params.workerId;</p>
  <p>to</p>
  <p>var workerId = context.params.cardUID.workerId;</p>
  <p>would do the trick but it does not.</p>