0
Pyrabase(python wrapper for the Firebase API)을 사용 중입니다. 다음 코드처럼 하나의 자식 필드를 업데이트하려고합니다. 아래 코드를 실행하면 "anotherField"는 "anotherField"를 건드리지 않고 어떻게 할 수 있습니까? 나는 다음과 같은 데이터 갱신을하려고필드를 업데이트하는 Pyrebase가 다른 필드를 사라집니다.
{
"weather":{
"Los Angeles":{
"anotherField":"something",
"isSunny":false
},
"istanbul":{
"anotherField":"something",
"isSunny":false
}
}
}
:
dict = {
"Los Angeles":{
"isSunny":true
},
"istanbul":{
"isSunny":true
}
}
db.child("weather").update(dict)
은 그냥 멋진 일 ... – beratuslu