title: Cloud Functions - View all properties of data() object?
body: <p>I'm looking for a way to <code>console.log</code> all the properties inside the <code>data()</code> object when using <code>onWrite</code> in Cloud Functions. Doing <code>event.after.data()</code> just gives me [Object object], and that's not very helpful.</p>
  
  <pre><code>exports.createSubscription = functions.firestore.document('Users/{userUID}').onWrite(event =&gt; {
      console.log('Token: ' + event.after.data().token);
      console.log('Email: ' + event.after.data().email);
      console.log('All: ' + event.after.data());         //Just returns [Object object]
  }
  </code></pre>