title: Get data from parent in Cloud Function?
body: <p>I want to assign to a <code>const</code> the name value inside parent</p>
  
  <pre><code>exports.myFunction = functions.database.ref('/messages/{pushId}/likes')
  
  .onWrite(event =&gt; {
  
      const name = event.parent.data.val().name; // this doesn't work. how do I properly get the name which is located in /messages/{pushId} ?
      });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Q4Qsb.png" alt="screenshot of the situation"></p>