Firebase – Where condition in firestore subcollection in ReactJS
My data is stored in Firestore in below model. My Problem is, I want to get schoolid of logged-in email id. Data Model: instituteData->schoolid->users->email->data What I tried const q = query(collection(db, "instituteData"), where("email", "==", "[email protected]")); const querySnapshot = await getDocs(q);…