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