title: Swift add value to existing child
body: <p>I'm really struggling to understand how to work the firebase realtime database. </p>
  
  <p>For my practice event app, once the event is created I store the values here under the child "firstDisplay":</p>
  
  <p><a href="https://i.stack.imgur.com/wVXfP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wVXfP.png" alt="enter image description here"></a></p>
  
  <p>The user info exists separately under the child "users":</p>
  
  <p><a href="https://i.stack.imgur.com/vavdI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vavdI.png" alt="enter image description here"></a></p>
  
  <p>When the event is created I use the code </p>
  
  <pre><code>var userListing: DatabaseReference = Database.database().reference().child("users").child("listings")
  userListing.updateChildValues([newGroupRefAsString: 1])
  </code></pre>
  
  <p>To take the reference of the event under "firstDisplay" and add it to the users information under a new child called "listings" so I can keep track of which user has made which event. However as you can see in the picture it creates a new child every time, I have tried a million things and cant seem to move the child listings into the child users. </p>
  
  <p>How can I make this work?</p>