Im using firestore as the database of my flutter app which manage patients information , in my view all patients screen im getting all documents from the 'patients' collection
StreamBuilder<List<Patient>>(
stream: FirebaseApi().getAllPatients,
initialData: [],
builder: (context, snapshot) {
var data = snapshot.data;
my question is firebase charge all the reads at the following line ?
stream: FirebaseApi().getAllPatients,
or if i filtered the data coming from the stream inside my StreamBuilder Builder Property it will charge data used after filtering ?
for example if i filtered and used only the documents where data.country == 'USA' from that stream (in total 100 documents) will it be count as 100 reads or total documents count ?
if so is there anyway to filter the data like this before getting it from firestore ?