im building an reporting app,
when a report sent to database its saves like
events(collection) -> New York(doc) -> Manhattan(col) -> Central Park(doc) -> event(col) -> saved documents
its basically saves, events to city to district to street to event
i fetch data of user with no problem
Stream<QuerySnapshot> tasks = FirebaseFirestore.instance
.collection('events')
.doc(StoredData.getCity()) //current users city information
.collection(StoredData.getDistrict().toString()) //current users district information
.doc(StoredData.getStreet()) //current users street information
.collection('events')
.where('uid', isEqualTo: FirebaseAuth.instance.currentUser?.uid) //query uid in documents uid field
.snapshots();
here is my problem
i want to fetch all data of city but i cant figure out how to do that. i want to see all records of new york