I have coded the below snippet from firestore site and according to my database but the code isn`t working i have tried too but nothing else works
the WHERE condition is the main reason isn`t working else it works fine
const test =() =>{
try {
dob.collection("users")
.where("F_name", "==", true)
.get()
.then((querySnapshot) => {
querySnapshot.forEach((doc) => {
console.log(doc.id, " => ", doc.data());
});
})
.catch((error) => {
console.log("Error getting documents: ", error);
});
} catch{
console.log("Erroror")
}
}
Database structure:
