I really can't find how to do it, how do I get in my RecyclerView all the values of a certain department. First things first, is it even possible? This is how my Firestore database loos like this, "blue_bottle" and "tops_national" is part of a document:
I want to populate my RecyclerView with all products, both out of "blue_bottle" and "tops_national" with the same department. So I need a DocumentReference which I believe is right:
private val promoOnedb = FirebaseFirestore.getInstance()
private val promoOneRef: DocumentReference = promoOnedb.collection("tops")
.document("promotions")
But how do I query that DocumentReference now to show all products, in both collections to show all products of the same department? Please.
