u4ii4y984484y203r
u4ii4y984484y203r

Reputation: 75

@capacitor-firebase/firestore plugin - getCountFromServer equivalent?

I'm using this plugin for my ReactJS + Capacitor project: https://www.npmjs.com/package/@capacitor-firebase/firestore#getcollection

However, I don't see any equivalent of getCountFromServer in their documentation. Does any of you have an idea if there's any workaround to achieve the same result? I would like to get the number of documents that fulfill certain criteria, but without incurring the cost of reading them all.

I'm a total beginner with that, so I'll really appreciate your patience and help ;) Thank you!

Upvotes: 0

Views: 33

Answers (1)

RGe
RGe

Reputation: 1859

I'm the maintainer of the Capacitor Firebase plugins. This method is not yet supported. Feel free to create a feature request on GitHub and we will implement that.

Upvotes: 1

Related Questions