I have a streambuilder, I thought I understood how it worked but now i am not so sure. why does this work =>
FirebaseFirestore.instance
.collection('messages')
.doc(widget.currentUser)
.collection('messages')
.doc(widget.otherUser)
.collection('messages')
.snapshots()
the above stream returns results. the documents inside the collection are custom ids not auto-generated from firestore on the other hand this does not work =>
FirebaseFirestore.instance
.collection('messages')
.doc(widget.currentUser)
.collection('messages')
.snapshots()
is there a reason why it doesn't return the results? the documents inside the above collection are firebase firestore auto-generated ids