I am following this document. Following is my code for update:
func updateDealResultToServer(key:String,dealResult : String) { let post = [\"dealResul\"
I suggest using setValue for single child updates (keep in mind that I am using Swift 3, slight syntax changes may apply but you should be fine):
setValue
rootRef.child("komal_kyz").child(key).setValue(["dealResul":dealResult])