# How to get all the nodes irrespective of the userid

**URL:** <https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024>\
**Category:** Questions about Thunkable X\
**Created:** [June 19, 2021, 9:18pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024 "2021-06-19T21:18:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![19manharan1fbs7](https://avatars.discourse-cdn.com/v4/letter/1/ecc23a/32.png) [@19manharan1fbs7](https://community.thunkable.com/u/19manharan1fbs7)\
**Post date:** [June 19, 2021, 9:18pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/1 "2021-06-19T21:18:17Z")

</div>

I have the below-mentioned database:-

![database1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ffff535c39856e1036043f21beef05395eda56c0.png)

I want to get all the sub-nodes in one list irrespective of the userid they are in.  
I want the list as follows:-

TO THE MOON  
NEED TO WORK  
(Since they are under one category - Realism)

Kindly guide me on what should I do?

---

<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 20, 2021, 2:59am UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/2 "2021-06-20T02:59:55Z")

</div>

There are several recent topics about how to do this. Here’s one:

> [@How to get Values from firebase?](https://community.thunkable.com/t/how-to-get-values-from-firebase/1324649):
>
> Hi I need a solution for the followings… This is my database stucture… I need this details in my list viewer… Pls help me… Thanks

---

<div class="post-metadata">

**Author:** ![19manharan1fbs7](https://avatars.discourse-cdn.com/v4/letter/1/ecc23a/32.png) [@19manharan1fbs7](https://community.thunkable.com/u/19manharan1fbs7)\
**Post date:** [June 20, 2021, 4:44am UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/3 "2021-06-20T04:44:34Z")

</div>

Thanks for your response, sir. I checked the link you provided. However, it will help me to get the details of the category displayed under 1 userid.  
However, I want to get all the stories present under 1 category from all the userid available in my database in one list.  
Suppose “userA” wrote “story1” under the category Drama from their login account, and “userB” wrote “Story2” under the same category drama from its own login account. Then being the third user, If I click on drama, my list should show this:-  
Story1  
Story2

---

<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 20, 2021, 10:29am UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/4 "2021-06-20T10:29:28Z")

</div>

There is no easy way.  
You have to go through a loop vetting the key values and retrieving required items.

Send the JSON file of your database and I’ll demonstrate a working looping structure.

---

<div class="post-metadata">

**Author:** ![19manharan1fbs7](https://avatars.discourse-cdn.com/v4/letter/1/ecc23a/32.png) [@19manharan1fbs7](https://community.thunkable.com/u/19manharan1fbs7)\
**Post date:** [June 20, 2021, 10:54am UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/5 "2021-06-20T10:54:21Z")

</div>

[https://drive.google.com/drive/folders/1PBiWENFW89y\_fj8RDrOh3VSicHQMlE9R?usp=sharing](https://drive.google.com/drive/folders/1PBiWENFW89y_fj8RDrOh3VSicHQMlE9R?usp=sharing)  
Link of folder containing the JSON file of the database.

I tried to use the following code but it only works if the category i.e., Fantasy, Drama, etc. is available in the first userid, then it will show the whole list irrespective of the userid, else will show nothing.

 ![datajson](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a8144a801776e1168466f4ce1597fdd2bb49eed4.png)

---

<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 20, 2021, 12:17pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/6 "2021-06-20T12:17:09Z")

</div>

What you attempted is right. You just need another loop inside the main loop.

---

<div class="post-metadata">

**Author:** ![19manharan1fbs7](https://avatars.discourse-cdn.com/v4/letter/1/ecc23a/32.png) [@19manharan1fbs7](https://community.thunkable.com/u/19manharan1fbs7)\
**Post date:** [June 20, 2021, 1:10pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/7 "2021-06-20T13:10:11Z")

</div>

What will be the value of that loop?

---

<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 20, 2021, 2:47pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/8 "2021-06-20T14:47:51Z")

</div>

See this block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/456596b8215c11c92c03b8099c1bb3f063b79db6.png)

This is the output

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/10488c074f15628959b5095892d3aff099500c7a.png)

---

<div class="post-metadata">

**Author:** ![19manharan1fbs7](https://avatars.discourse-cdn.com/v4/letter/1/ecc23a/32.png) [@19manharan1fbs7](https://community.thunkable.com/u/19manharan1fbs7)\
**Post date:** [July 1, 2021, 4:58pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/9 "2021-07-01T16:58:12Z")

</div>

Thank you for your guidance. It helped me a lot in my project. 🙂

---

<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:20pm UTC](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/10 "2024-11-08T13:20:12Z")

</div>


