0
 Query query = firebaseFirestore.collection("patientrecords")
            .whereEqualTo("patient_id",firebaseAuth.getCurrentUser().getUid())
            .whereEqualTo("record_name",type)
            .orderBy("timestamp",Query.Direction.ASCENDING);

    FirestoreRecyclerOptions<PatientModel> options = new FirestoreRecyclerOptions.Builder<PatientModel>()
            .setQuery(query,PatientModel.class)
            .build();

Here I am trying to retrieve the data from firebase firestore by using Firebase query. But was unable to get the data from the firestore. When I am trying to fetch the data according to timestamp, no data is coming .

Kindly help me in this.

Satya
  • 1
  • 1

0 Answers0