title: Swift 3 Firebase retrieving key and passing to view controller
body: <p>I've spend hours looking at identical questions but none of the answers I've found are helping this issue. Simple app retrieves data from <code>Firebase</code> Database and passes to another view controller from the tableview.  The main data will pass through but I can't edit the information without an identifying "key" which I tried to set as <code>childByAutoID()</code> but then changed to a <code>timestamp</code>.  Regardless of the method, all I get is the entries info not the actual key itself.  </p>
  
  <pre><code>func loadData() {
      self.itemList.removeAll()
      let ref = FIRDatabase.database().reference()
  
  
      ref.child(userID!).child("MyStuff").observeSingleEvent(of: .value, with: { (snapshot) in
  
  
  
          if let todoDict = snapshot.value as? [String:AnyObject] {
              for (_,todoElement) in todoDict {
  
  
  
                  let todo = TheItems()
  
  
  
                  todo.itemName = todoElement["itemName"] as? String
                  todo.itemExpires = todoElement["itemExpires"] as? String
                  todo.itemType = todoElement["itemType"] as? String
  
  
  
                  self.itemList.append(todo)
  
                  print (snapshot.key);
  
              }
  
  
  
          }
  
          self.tableView.reloadData()
  
      }) { (error) in
          print(error.localizedDescription)
      }
  
  
  }
  </code></pre>