How to query all timestamps for a certain date (20210205
) and certain user (ala
) from Cloud Firestore in the below example? For now, I can download the entire document and filter it on the device. But it's not effective.
FirebaseFirestore db = FirebaseFirestore.getInstance();
db.collection("companies").document("softnet").collection("users")
.document("ala").get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
@Override
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
Log.d(TAG, "result: " + task.getResult().getData());
}
});