ra-data-firestore-client-for-big-collections

0.1.22 • Public • Published

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.

Package Sidebar

Install

npm i ra-data-firestore-client-for-big-collections

Weekly Downloads

0

Version

0.1.22

License

ISC

Unpacked Size

73.7 kB

Total Files

12

Last publish

Collaborators

  • naggertooth