I have data something like Customer -> documnetid -> Orders(collection) same as for all customer. I need to show the list of orders from all the customer in a list. If a customer orders a item again it needs to create another list.
FirebaseFirestore.instance
.collection("customer")
.doc('a44d4c1b-7faa-4139-b707-a40499fe4ce5')
.collection("orders")
.where('orderStatus', isEqualTo: 'ordered')
.snapshots(),
I can get the data if I provide specific document id. But I need to get orders from all the customers. Please help me in this. Thank you