FirestoreLiteProviderclass

new FirestoreLiteProvider<I, T>(firestore: Firestore)
ParamType
firestoreFirestore
The Firestore instance to read and write through. required
Return
FirestoreLiteProvider<I, T>
Cloud Firestore database provider backed by the Firebase Lite SDK, implementing the DBProvider abstraction.

Cloud Firestore database provider backed by the Firebase Lite SDK, implementing the DBProvider abstraction.

  • Works with the Firebase JS SDK via firebase/firestore/lite, which keeps bundle size small.
  • Does not support offline mode.
  • Does not support realtime subscriptions: getItemSequence() and getQuerySequence() throw UnimplementedError.

Examples

import { getFirestore } from "firebase/firestore/lite";
const provider = new FirestoreLiteProvider(getFirestore());