I have been trying to do a Firebase query for my blog for many days. I have this data structure.
[{
"-M5ivrqL4XMxI3dYokP0" : { -> ID group
"title" : "group stackoverflow",
"members" : {
"-M88aIjP1ENue0GChAE1" : {
"acepted" : "1",
"comment" : "lorem ipsum",
"createdAt" : "24-05-2020 22:11",
"idUser" : "W1fQvOYOATXIiNEj0hG07339sIe2"
},
"-M95m_Tv1XnD0KlAQeXx" : {
"acepted" : "1",
"comment" : "lorem ipsum",
"createdAt" : "05-06-2020 19:21",
"idUser" : "6xo3Y3yb2KeQvjW8Csxnbcqd2xH2"
},
}
}
}]
What I'm looking for is to bring the group and all the users with name and thumbnail to show them in an avatar component. Something like the inner join in sql, but in firebase i have not managed to get it. thanks.