firebase / firebase/firebase-admin-java

[FR] Count documents in collection

オープン
#908 コメント 2 件 リアクション 0 件 担当者 1 名 @dconeybe が担当を希望しています GitHub で見る
api: firestore type: feature request
主要言語
Java
スター
620
フォーク
305
平均マージ
3時間 23分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。