i want indivisualscore of all the ids to get printed on the console.
when i search for each indivisual id passed it gives me correct answer. for example
CollectionReference collectionReference = FirebaseFirestore.instance.collection('score');
await collectionReference.doc(widget.uid).collection("indivisualscore").snapshots().listen((event) {
print(event.docs.length);
}
here i am passing widget.uid, gives me indivisualscore of that particular id passed.
but i now want to obtain indivisualscore of all the ids, in the score collection. it has to do something with the length of the doc in score collection,but i am not able to get it correctly.
thanks.