Package Exports
- ra-data-firestore-client-naggertooth
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ra-data-firestore-client-naggertooth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-naggertoothCheck 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