title: Reading multiple child nodes from Firebase in Swift
body: <p>I have a collection view where I am attempting to append the information that the user has uploaded. Currently my database looks as followed:
  <a href="https://i.stack.imgur.com/zfvjF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zfvjF.png" alt="enter image description here"></a></p>
  
  <p>I am attempting to get the titles, audioURl, Description, image, etc. &amp; append them into my array. The problem is I am getting a crash every time I try to do it. I am relatively new to Firebase &amp; still learning as I go.</p>
  
  <p>Currently my code for retrieving is as followed:</p>
  
  <pre><code>let ref = FIRDatabase.database().reference().child("users").child(FIRAuth.auth()!.currentUser!.uid).child("uploads").child("allUploads")
  
          ref.observe(.value, with: {(snap: FIRDataSnapshot) in
  
              print(snap)
  
              let track = TracksInfo()
              let snapshotDictionnary = snap.value! as? [String: AnyObject]
  
  
              track.trackName = snapshotDictionnary?["Title"] as! String
              track.urlToRecording = snapshotDictionnary?["audioUrl"] as! String
              track.urlToAlbumArtWork = snapshotDictionnary?["imageUrl"] as! String
  
              self.tracks.append(track)
  
          })
  </code></pre>
  
  <p>How would I go about accessing each of the uploads information &amp; append them into my array? Do I need to do a query of some sort?</p>
  
  <p>My Crash occurs @  <code>track.trackName = snapshotDictionnary?["Title"] as! String</code> But there is no error.</p>