Query Firebase and get Key
<p>I'm trying to query firebase and if the record exists I want to unique key but cannot seem to get it. My filter works fine but I don't know what the object property names are and can't seem to find anything on firebase that helps. The .key() always returns an error. Here is what my object looks like when I return it</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>GET /js/init.js 200 5.048 ms - 207
GET /img/logo.png 200 2.376 ms - 2793
{ '-KP8qXgQRaeClqzKX1Lo': { email: 'bdole@gmail.com' } }
GET /sent 200 7.923 ms - 8110</code></pre>
</div>
</div>
</p>

<p>Here is my code</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>    firebase.database().ref('/customers').orderByChild("email").equalTo(email).on("value", function(snapshot) {
      console.log(snapshot.val());
    },function (errorObject) {
      console.log("The read failed: " + errorObject.code);
    });</code></pre>
</div>
</div>
</p>

<p>I need that key because if it exists I need to use that for the next step.</p>