我无法将Cloud Firestore中的所有集合都放入文档列表中。我再次说的是来自document(documents-> collections)的collections,而不是来自collection(collections-> documents)的文档 收藏->文档->收藏
db.collection("typesOfRepairs").document("Vehicles").get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {
@Override
public void onSuccess(DocumentSnapshot documentSnapshot) {
if (progressDialog.isShowing()){
progressDialog.dismiss();
}
Log.e("res",""+documentSnapshot.getData());
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
if (progressDialog.isShowing()){
progressDialog.dismiss();
}
Log.e("res",""+e.getMessage());
}
});
我知道我会{Cars = 2,Bikes = 1},但是我需要获取收藏(自行车,汽车)。