title: Firebase Query - Nested Data
body: <p>I am attempting to query some hierarchical data in firebase. I'm having a little difficulty in figuring out how to query the following data structure:</p>
  
  <pre><code>{
    "orgs": {
      "-KBFXBBEyvgtfqMvU4pi": {
        "name": "ACME 123",
        "owner": "-K9IPqIUIuEFzLS0f_Pe",
        "users": {
          "-KBF_GhwTmXfR6Jce30t": {
            "email": "userA@company.com",
            "permission": "editor",
            "userKey": "K99LV9cTjh1ovW1D5j2"
          },
          "-KBF_M533zzbUilGvAAW": {
            "email": "userB@company.com",
            "permission": "editor"
          }
        }
      },
      "-KBFaKlJ8tfqjBQjAZgq": {
        "name": "ACME Alt LLC",
        "owner": "-K9IPqIUIuEFzLS0f_ZZ",
        "users": {
          "-KBFbD4trt9nyeHPUQbn": {
            "email": "userX@co.com",
            "permission": "editor"
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>Specifically, I would like to find out if the email address "userB@company.com" exists. But this is a little confusing for me since I need to search through 2 levels (orgs and users).</p>