'How to map over multiple collections in firebase that starts with specific text?
I'm trying to fetch muliple collection from firebase that starts with specific text, but i can't fetch them all, It just fetch only one collection
this a picture of firebase collections that i want to fetch starts with 'Buyer-Cart' 
const Uid = auth.currentUser.uid;
useEffect(() => {
fs.collection("Buyer-Cart "+Uid)
.get()
.then((Snapshot) => {
const data = Snapshot.docs.map((doc) => {
return doc.data();
});
setOrderIds(data);
});
}, []);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
