title: How to get all data from one child in Firebase using Swift
body: <p><a href="https://i.stack.imgur.com/UNvIi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UNvIi.png" alt="My Database"></a></p>
  
  <p>How can I get the child email value for all items in the database without knowing the user ID?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>var userRef = Firebase(url:MY_FIREBASE_URL)
      userRef.child("email").observeSingleEventOfType(
         .Value, withBlock: { (snapshot) -&gt; Void in
  
              for child in snapshot.children {
  
                  let childSnapshot = snapshot.childSnapshotForPath(child.key)
                  let someValue = childSnapshot.value!["key"] as! String
                  print("value \(someValue)")
              }
      })
  </code></pre>
  
  <p>and many other variations and nothing seems to work. It seems like XCode just skips the code all together.</p>