In the function below, I want to get all the records in a collection named 'contexts'.
But, when I ask to print each record, I get nothing, not even an empty field or a null.
On the console, it is like if I have never ask for print.
I do not understand why.
Future getAllContextInFirebaseV1() async {
CollectionReference ref = FirebaseFirestore.instance.collection('Users')
.doc((FirebaseAuth.instance.currentUser.uid))
.collection('contexts');
QuerySnapshot contextsQuery = await ref
.get();
contextsQuery.docs.forEach((document) {
print(document['context_Name']);
});
}


