Counting documents in firestore collection with react-redux-firebase

35 Views Asked by At

I need to count documents in firestore collection and I saw this article https://firebase.google.com/docs/firestore/query-data/aggregation-queries

However the project I am working on currently uses react-redux-firebase instead of using API described in the article above directly.

So, when I try

await firestore.collection('items').count().get();

I get error

count is not a function

Is there a way to use this firestore functionality from react-redux-firebase or somehow get reference to original API methods from within react-redux-firebase?

0

There are 0 best solutions below