I'm trying to query 2 collections from firebase and put it in a streambuilder
.
There are lot of questions like this,but a lot of them are unsolved,or I just didn't really found the right one.
So,I got a users
,and a salons
collection in Firebase.
user1
contains his name,age,etc and he have another collection called favsalons
. In salons
are the description of salons like name,owner,etc
In app I want to list out the favsalons
with their datas.
In SQL it would look something like this : Select salons.name,salons.owner From salons,user Where userID=user1 and favsalonsID=salonsID
Since I'm new to flutter,and to the non SQL databases,I got no clue how to do it.
Is there a simple solution?