skip to Main Content

Firebase – How to retrieve all documents from a collection in Firestore optimizing reads?

Basically I'm having an issue with the amount of reads that I get from using the following code: public Iterable<Contract> findAllExpired(){ List<Contract> empList = new ArrayList<Contract>(); CollectionReference collaborator = fb.getFirestore().collection("Contracts"); ApiFuture<QuerySnapshot> querySnapshot = collaborator.get(); try { for (DocumentSnapshot doc :…

VIEW QUESTION
Back To Top
Search