Saltar al contenido

@capgo/capacitor-firebase-firestore

Capacitor plugin for Firebase Cloud Firestore.

Capacitor plugin for Firebase Cloud Firestore.

  • addDocument - Adds a new document to a collection with the given data.
  • setDocument - Writes to the document referred to by the specified reference. If the document does not yet exist, it will be created.
  • getDocument - Reads the document referred to by the specified reference.
  • updateDocument - Updates fields in the document referred to by the specified reference.
MethodDescription
addDocumentAdds a new document to a collection with the given data.
setDocumentWrites to the document referred to by the specified reference. If the document does not yet exist, it will be created.
getDocumentReads the document referred to by the specified reference.
updateDocumentUpdates fields in the document referred to by the specified reference.
deleteDocumentDeletes the document referred to by the specified reference.
writeBatchExecute multiple write operations as a single batch.
getCollectionReads the collection referenced by the specified reference.
getCollectionGroupReads the collection group referenced by the specified reference.
getCountFromServerFetches the number of documents in a collection.
clearPersistenceClears the persistent storage. This includes pending writes and cached documents.
enableNetworkRe-enables use of the network.
disableNetworkDisables use of the network.
useEmulatorInstrument your app to talk to the Firestore emulator.
addDocumentSnapshotListenerAdds a listener for document snapshot events.
addCollectionSnapshotListenerAdds a listener for collection snapshot events.
addCollectionGroupSnapshotListenerAdds a listener for collection group snapshot events.
removeSnapshotListenerRemove a listener for document or collection snapshot events.
removeAllListenersRemove all listeners for this plugin.
getPluginVersionGet the version of this plugin.

This reference is synced from src/definitions.ts in capacitor-firebase.