firebase / firebase/firebase-admin-java

[FR] Count documents in collection

未關閉
#908 2 則留言 0 個 reaction 已指派 1 人 已被 @dconeybe 認領 在 GitHub 檢視
api: firestore type: feature request
主要語言
Java
星號
620
分支
305
平均合併
3 小時 23 分鐘
30 天內合併 PR
1

描述

I'm frustrating with the inability to count my documents in a collection. it is described [here](https://firebase.google.com/docs/firestore/query-data/aggregation-queries#use_the_count_aggregation) that in Java you can count the documents when you get the `CollectionReference` and execute the `count().get().get().getCount()` . I'm using version **3.9.0** of `com.google.cloud:google-cloud-firestore` and there in `CollectionReference` I don't see any implementation of `count()`. Also [here](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/CollectionReference) the class doesn't have the `count()` method aswell.

So I have a question - will `count()` be available soon? Also is there any workaround how I can count my documents in my collection? Thank you.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。