A Firestore Client for the awesome react-admin framework. This library is a modified version of aymendhaya/ra-data-firebase-client
clone the repo & run
npm install
npm run init
npm run demo
npm install ra-data-firestore-client-naggertooth
Check example implementation.
For AuthProvider, don't forget to add the user UID to your Firestore DB under /users matching the following structure:
"users": {
"UID": {
"isAdmin": true
}
}
Firestore doesn't have counter of documents in a collection without taking a snap
So I got forced to add serverside function that increments {collection}/config/numberOfDocs
with write operations
because my collection counts over than 50000 docs