![](/img/trans.png)
[英]Firestore - How Can I Get The Collections From a DocumentSnapshot?
[英]How can I get the number of collections inside a document in Firestore?
所以我正在做一個 android 應用程序,我需要獲取數據庫中的用戶數量來為下一個將注冊的用戶設置 ID。 我的數據模型如下所示:
app:
users:
1:
email:"dummy@gmail.com"
isTherapist: true
2:
email:"dummy@gmail.com"
isTherapist: false
所以“app”是一個集合,“users”是一個文檔,里面是代表每個用戶的集合。 我怎樣才能做到這一點?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.