# Firebase - rename a node?

**URL:** https://community.thunkable.com/t/firebase-rename-a-node/1389679
**Category:** Questions about Thunkable X
**Created:** [July 11, 2021, 1:16am UTC](https://community.thunkable.com/t/firebase-rename-a-node/1389679 "2021-07-11T01:16:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [July 11, 2021, 1:16am UTC](https://community.thunkable.com/t/firebase-rename-a-node/1389679/1 "2021-07-11T01:16:14Z")

</div>

All,  
I’m working on my grocery list app (yes, the one that could have been last week’s WDC submission). I have a firebase data structure like:

```auto
User/Lists/List_name/Meal_name/Peaches/sku: 01234
                                      /quantity: 2
                             /Beans /sku: 54321
                                      /quantity: 1

```

My problem is that I’d like to let users change the name of an ingredient (i.e. Peaches to Ripe Peaches). I can’t for the life of me figure out how to do that with Firebase, except to copy everything under the Peaches node to Ripe Peaches and then delete the Peaches node.

Is there a better way?

---

<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: [July 11, 2021, 8:36am UTC](https://community.thunkable.com/t/firebase-rename-a-node/1389679/2 "2021-07-11T08:36:24Z")

</div>

Not of what I know.

The other way of course is a slight change in the structure and instead of having a `node` as an ingredient name have the node be “Ingredient” and under this node is the details with the ingredient name included.

```auto
User/Lists/List_name/Meal_name/Ingredient
                                      {Name: Peaches,
                                      sku: 01234,
                                      quantity: 2}

                                     {Name: Beans,
                                     sku: 54321,
                                     quantity: 1}

```

This way the ingredients are merely a list of objects under the `node` “Ingredient” which you can manipulates

---

<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, 1:19pm UTC](https://community.thunkable.com/t/firebase-rename-a-node/1389679/3 "2024-11-08T13:19:51Z")

</div>


