Future<QuerySnapshot> showUnSolved(String category) async {
DocumentReference docRef =
_firestore.collection('users').doc(_auth.currentUs er!.uid);
DocumentSnapshot doc = await docRef.get();
List quizler = doc['cozulenTestler'];
print("bura" + quizler.length.toString());
if (quizler.isEmpty) {
return await _firestore
.collection("quizes")
.where("category", isEqualTo: category)
.get();
} else {
return await _firestore
.collection("quizes")
.where("q_id", whereNotIn: quizler)
.where("category", isEqualTo: category)
.get();
}
}
Bu Flutter kodlarında Firebase veritabanından veri çekmek için
return await _firestore
.collection("quizes")
.where("q_id", whereNotIn: quizler)
.where("category", isEqualTo: category)
.get();
bu kod kısmında verileri çekmiyor. bu kodlardaki .where("category", isEqualTo: category) sorgusunu sildiğim zaman çalışıyor. Neden .where("category", isEqualTo: category) komutunu eklediğim zaman çalışmıyor. Birtürlü çözen olmadı.