I have a big problem that I need to address quickly. I have my firebase realtime database structured this way:
Picture:
My question is simple: How can I only retrieve the friendIds as a list without the inner data i.e firendsStatus, lastMessage, lastTimestamp...
My current response is like this: {friendsArray: {'34uibjerktbbt854uigefg' : {'lastMessage' : 'ajskdkjasd',...}, {'574uibsd784546ktbbt854uigefg' : {'lastMessage' : 'weurhisdf', ...} and so on}}
I want it to be like this: {friendsArray: ['34uibjerktbbt854uigefg', '34uibjerktbbt854uigefg', '34uibjerktbbt854uigefg', and so on]}
Is there any way to achieve this because if I observe the whole data it gets pretty big and slow?
Thank You
