title: adding a child to a child in Firebase Database with Swift
body: <p>I am working with the following Firebase Database:</p>
  
  <p><a href="https://i.stack.imgur.com/0YOTe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0YOTe.png" alt="enter image description here"></a></p>
  
  <p>I add new chatIDs with the following code:</p>
  
  <pre><code>DatabaseReference.users(uid: self.uid).reference().child("chatIds/\(chat.uid)").setValue(chat.uid)
  </code></pre>
  
  <p>I need to add a single child to the individual <code>"chatIDs"</code> that is a random string that I will generate but I haven't worked with Firebase for that long so I am not sure how to do add children this far in. How can I write the code to do this?</p>