【发布时间】:2016-11-09 09:50:36
【问题描述】:
大家好,我是 Firebase 的新手,我正在尝试检索 Uid 下的所有数据。 我这样存储它们:
mDatabase=FirebaseDatabase.getInstance().getReference().child("Data").child(auth.getCurrentUser().getUid());
//some other code here
DatabaseReference newProduct =mDatabase.child(category).child("Product").push();
newProduct.child("productname").setValue(name);
newProduct.child("date").setValue(date);
我的问题是如何检索 userUid 类别下的所有数据?我需要.child(*).child("Products") 之类的东西吗?
【问题讨论】:
标签: android firebase firebase-realtime-database