Banco de dados FIREBASE - Armazenando chave exclusiva no nó filho (Swift / IOS)

Estou tentando armazenar o geradoChave única quando childByAutoId é chamado. Em teoria, ajudaria a mapear atualizações ou alterações em um filho especificado que precisam acontecer mais tarde no meu aplicativo.

Sou bastante novo no banco de dados hierárquico do Firebase e, se a abordagem descrita abaixo não estiver correta, não hesite em dar uma alternativa.

Sou bastante novo no Firebase e tenho um aplicativo multiplayer, onde minha estrutura atualmente se parece com a seguinte:

"HTGames" : {

"-KFGX5H3rLSnpPvupakm" : {
  {
    "Red" : 1,
    "Green" : 3,
    "Blue" : 2,
    "GameLimit" : 1,
    "P1Name" : 3,
    "P2Name" : 2,
    "P3Name" : 1,
    "P1Points" : 3,
    "P2Points" : 2,
    "P3Points": 3,
    "numberOfPlayers" : 1.
    "gameStart": true
  }
},
   "-X5Hhgljh3rLSnpPvum" : {
  {
    "Red" : 1,
    "Green" : 3,
    "Blue" : 2,
    "GameLimit" : 1,
    "P1Name" : 3,
    "P2Name" : 2,
    "P3Name" : 1,
    "P1Points" : 3,
    "P2Points" : 2,
    "P3Points": 3,
    "numberOfPlayers" : 1.
    "gameStart": true
  }}}
}

Chamada de método Swift abaixo ...

func startNewGame(){
//Database reference object
    let databaseRef = FIRDatabase.database().reference()

    let gameTable : [String : AnyObject] = ["Green": "", "Red": "", "Blue": "", "GameTypePoint": "","P1Name": "",  "P2Name": "", "P3Name": "", "P1Points": "","P2Points": "", "P3Points": "","NumOfPlayers": "","GameStart": ""]

//Auto generates unique ID and creates child under "HTGame" parent
    databaseRef.child("HTGame").childByAutoId().setValue(gameTable)

//**********I would like to store key locally here*********//
    //let key =
}

questionAnswers(1)

yourAnswerToTheQuestion