firebase / firebase/firebase-admin-java

[FR] Count documents in collection

Aperta
#908 2 commenti 0 reazioni 1 assegnatario Rivendicata da @dconeybe Vedi su GitHub
api: firestore type: feature request
Lingua principale
Java
Stelle
620
Fork
305
Merge medio
3h 23m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.