# How do I work with lists in Firebase?

**URL:** https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302
**Category:** Questions about Thunkable X
**Created:** [June 12, 2022, 10:35am UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302 "2022-06-12T10:35:43Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![wisdomtayt0k5s](https://avatars.discourse-cdn.com/v4/letter/w/a88e57/32.png) [@wisdomtayt0k5s](https://community.thunkable.com/u/wisdomtayt0k5s)
#### Post date: [June 12, 2022, 10:35am UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/1 "2022-06-12T10:35:43Z")

</div>

![Thunkable - Google Chrome 12_6_2022 6_24_48 pm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/9039a703f60c4c0447e67c17f00aa3c82be4eb86.png)

 ![Thunkable - Google Chrome 12_6_2022 6_24_00 pm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/9/d97867fe3bb368446c56fa7be30a46e8168d93be.png)  
So i am experiencing a few issues.

1. When i try to set the property in the first block, it doesnt work at all, and  
2.Since both lists and objects are saved the same way in firebase and when i set the text on labels to the objects, it also displays a list, i assume they work the same? why doesnt this work?

There is probably something small i missed, could anyone help me pls?

---

<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: [June 12, 2022, 2:14pm UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/2 "2022-06-12T14:14:23Z")

</div>

It seems you saved a `List` under the key `name`. The **0** under `name` is an index not a property.

---

<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: [June 12, 2022, 5:16pm UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/3 "2022-06-12T17:16:19Z")

</div>

Try to get property “1.1” because the first item of a list in Thunkable is 1. In Firebase, it’s labeled as “0”.

---

<div class="post-metadata">

### Author: ![wisdomtayt0k5s](https://avatars.discourse-cdn.com/v4/letter/w/a88e57/32.png) [@wisdomtayt0k5s](https://community.thunkable.com/u/wisdomtayt0k5s)
#### Post date: [June 14, 2022, 12:00pm UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/4 "2022-06-14T12:00:43Z")

</div>

@tatiang No that doesnt work. I tried 1.1 and 0.0 but both dont work while 3 changes the 3, not the third one

---

<div class="post-metadata">

### Author: ![wisdomtayt0k5s](https://avatars.discourse-cdn.com/v4/letter/w/a88e57/32.png) [@wisdomtayt0k5s](https://community.thunkable.com/u/wisdomtayt0k5s)
#### Post date: [June 14, 2022, 12:03pm UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/5 "2022-06-14T12:03:32Z")

</div>

So how would i retrieve or change it? thanks

---

<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: [June 14, 2022, 2:16pm UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/6 "2022-06-14T14:16:06Z")

</div>

Sorry, I think I was mistaken. It looks like the “0”, “1” and “2” properties are not in a list. Try getting the first list item of cloud variable name and then getting the property “0” of that to get the value 1; property “1” to get the value 2; and property “2” to get the value 3.

---

<div class="post-metadata">

### Author: ![wisdomtayt0k5s](https://avatars.discourse-cdn.com/v4/letter/w/a88e57/32.png) [@wisdomtayt0k5s](https://community.thunkable.com/u/wisdomtayt0k5s)
#### Post date: [June 15, 2022, 4:34am UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/7 "2022-06-15T04:34:25Z")

</div>

but how would i change those variables using the blocks in the photo?

---

<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: [June 15, 2022, 4:55am UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/8 "2022-06-15T04:55:23Z")

</div>

I think you can **set** the property “[1].0” of object `cloud variable name` to 5678 (which will change the 0: 1 in your screenshot to 0: 5678).

For the **get** property, what are you trying to change? Are you wanting to add 3: 3456 to name[1]? If so, name[1] is not a list so I think you’d just set property “name[1].3” to 3456.

If you’re still having trouble, can you export the JSON from the Firebase console and post it here? Make sure to format it as “Preformatted text” using the \</\> toolbar button.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [September 13, 2022, 4:56am UTC](https://community.thunkable.com/t/how-do-i-work-with-lists-in-firebase/1921302/9 "2022-09-13T04:56:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
