# \[Solved\] How to update nested Firebase value?

**URL:** <https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [December 4, 2020, 7:49am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758 "2020-12-04T07:49:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 4, 2020, 7:49am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/1 "2020-12-04T07:49:59Z")

</div>

I’m wondering how to update a nested Firebase value without the Realtime\_DB component.

For example, how would I set the value of game data–\>Players–\>Guest–\>Name below? I know how to create that object but… do I just create the object all over again when I want to update the value?

![Screen Shot 2020-12-03 at 11.47.32 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/90f6d6389f142a1bf82ecf36ecf0bb46773847f8.png)

This is what I had in mind but it won’t work for obvious reasons:

 ![Screen Shot 2020-12-03 at 11.52.34 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/d/adcc114d5b925481fabd3a3385699dd963506499.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 4, 2020, 8:06am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/2 "2020-12-04T08:06:30Z")

</div>

I have a feeling this might be the answer:

> [@Replace GET or SAVE Blocks with cloud variables](http://community.thunkable.com/t/thunkable-hack-deep-firebase-json-data-manipulation-without-using-get-or-save-blocks/975738):
>
> I just discovered a VERY simple and fast way to get and set Firebase data without using the GET or SAVE blocks (which has all sorts of asynchronous issues). The 2 any button click blocks below return the same data. Just put the GET block KEY variable into the CLOUD variable name and PRESTO. You have a synchronous call to firebase! Similarly, you can set data anywhere in the JSON Hierarchy using cloud variables. Both of the examples below update Firebase, but the CLOUD based solution…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 4, 2020, 8:07am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/3 "2020-12-04T08:07:52Z")

</div>

You need to address it with the “/” notation instead of object structure. Game ID/Players/Guest/Score=00

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 4, 2020, 8:13am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/4 "2020-12-04T08:13:37Z")

</div>

@muneer Okay, I see that. I thought this would work but it doesn’t change the value:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/41aaf05d4780f2e30abbc45f109acaa36987d022.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 4, 2020, 8:15am UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/5 "2020-12-04T08:15:05Z")

</div>

Ah, I had to include the top level directory (the variable name itself):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/0/70bad2cdbf57fc1eef888e7c611a51a05b993e08.png)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:20pm UTC](https://community.thunkable.com/t/solved-how-to-update-nested-firebase-value/1019758/6 "2024-11-08T12:20:02Z")

</div>


