title: Firebase observeSigleEvent or observe
body: <p>Hi all I am trying to retrieve data from firebase </p>
  
  <p>Here is a picture of it
  <a href="https://i.stack.imgur.com/7E7qg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7E7qg.png" alt="enter image description here"></a></p>
  
  <p>In this case:</p>
  
  <pre><code>    self.ref.child("Events").child("2").observeSingleEvent(of: .value, with: {snap in
              //let snap = child as! DataSnapshot
              let event = snap.value as? [[String:Any]]
              print(snap.value)
              let end_time_test = event?["end_time"] as? String
  </code></pre>
  
  <p>event is nil, it's supposed to put an array in it, it works here</p>
  
  <pre><code>self.ref.child("Events").child("2").observe(.value, with: { (snapshot) in
                  for child in snapshot.children{
  
              let snap = child as! DataSnapshot
              let event = snap.value as? [String:Any]
                  print(event )
  </code></pre>
  
  <p>I'm new to firebase requests thanks in advance.</p>