title: How can i get the auto generated key of Firebase in Swift?
body: <p><a href="https://i.stack.imgur.com/anyDJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/anyDJ.jpg" alt="Firebase structure"></a></p>
  
  <p>I have the Firebase structure like that. So how can i get and print out the string of auto generate key and its index? </p>
  
  <p>Its my code but still print out <code>10093</code></p>
  
  <pre><code>databaseReference.child("Message").child(senderId).child(receiverId!).observe(.value, with: { snapshot in
              self.databaseReference.child("Message").child(self.senderId).child(self.receiverId!).child(snapshot.key).observe(.value, with: { (snap) in
                  print("aaa \(snap.key)")
      })
  })
  </code></pre>
  
  <p>What i'm missing or something wrong? Please fix it for me. Thank a lot</p>