title: Retrieve multiple data from firebase database in one cloud function
body: <p>I am faced with the problem of retrieving two data values of a single node from my firebase database and reference it in my javascript file but don't know how to go about it. I have been able to retrieve just one data value from a node (in this case "message") but I would like to add "from" as well. Most tutorials just reference one so I am really confused. So how do I get multiple data values? 
  This is my code...</p>
  
  <p><strong>JS file</strong></p>
  
  <pre><code>exports.sendNotification7 = functions.database.ref('/GroupChat/{Modules}/SDevtChat/{SDevtChatId}/message')
  .onWrite(( change,context) =&gt;{
  
  // Grab the current value of what was written to the Realtime Database.
  var eventSnapshot = change.after.val();
  var str = "New message from System Development Group Chat: " + eventSnapshot;
  console.log(eventSnapshot);
  
  var topic = "Management.Information.System";
  var payload = {
      data: {
          name: str,
          click_action: "Student_SystemsDevt"
  
      }
  };
  
  // Send a message to devices subscribed to the provided topic.
  return admin.messaging().sendToTopic(topic, payload)
      .then(function (response) {
          // See the MessagingTopicResponse reference documentation for the
          // contents of response.
          console.log("Successfully sent message:", response);
          return;
      })
      .catch(function (error) {
          console.log("Error sending message:", error);
      });
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CLfuM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CLfuM.png" alt="Database Snapshot"></a></p>