How to update particular value of child in Firebase DB

前端 未结 3 1647
南旧
南旧 2020-12-29 17:21

I am following this document. Following is my code for update:

func updateDealResultToServer(key:String,dealResult : String)
{

    let post = [\"dealResul\"         


        
3条回答
  •  梦毁少年i
    2020-12-29 17:43

    let ref = FIRDatabase.database().reference().root.child("users").child("childKey").updateChildValues(["childKeyForUpdate": "NewData"])
    

提交回复
热议问题