title: Retrieving data from Firebase in Swift
body: <p>I've been looking at the APIs from the Firebase website, however, when I print my snapshot, I get <strong>everything</strong> from my database. </p>
  
  <p>I'm trying to only print the value I just set, which is my variable: <code>test_person_1</code>.</p>
  
  <pre><code> import UIKit
   import Firebase
  
   class Test: UIViewController {
  
  
  override func viewDidLoad() {
          super.viewDidLoad()
  
      let ref = FIRDatabase.database().reference()
  
  
  
      ref.observeEventType(.ChildAdded, withBlock: { (snapshot) in
  
  
  
          var test_person_1 = ["full_name": "Test 1", "date_of_birth": "June 1, 2000"]
          var Test_person_2 = ["full_name": "Grace Hopper", "date_of_birth": "July 1, 2000"]
                      let usersRef = ref.child("New child")
  
  
          usersRef.setValue([test_person_1])
  
  
          print(snapshot) //
  
  
      })
  </code></pre>
  
  <p>Json tree: <a href="https://i.stack.imgur.com/QDEMh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QDEMh.png" alt="enter image description here"></a></p>