0.1.22 • Published 4 years ago

ra-data-firestore-client-for-big-collections v0.1.22

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

ra-data-firestore-client

A Firestore Client for the awesome react-admin framework. This library is a modified version of aymendhaya/ra-data-firebase-client

For a quick demo:

clone the repo & run

npm install 
npm run init 
npm run demo 

To install & test RestProvider & AuthProvider:

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
    }
}

Important

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


ra-data-firestore-client also supports base64 image uploading.