How to update particular value of child in Firebase DB
<p>I am following this <a href="https://firebase.google.com/docs/database/ios/save-data" rel="nofollow noreferrer">document</a>. Following is my code for update:</p>

<pre><code>func updateDealResultToServer(key:String,dealResult : String)
{

    let post = ["dealResul": dealResult]
    let childUpdates =
        ["/komal_xyz/\(key)": post
        ]

    rootRef.updateChildValues(childUpdates)

}
</code></pre>

<p>This Is my Firebase database structure:
<a href="https://i.stack.imgur.com/F2HF5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F2HF5.png" alt="enter image description here"></a></p>

<p>I want to only change the value for <code>dealResult</code>. Whenever I try to run above code for particular child node like <code>1473670100726</code>, other value except <code>dealResul</code> is deleted.  </p>