🧩 Firestore
An extension to interact with Google Firestore.My Other Extensions
Built by Sarthak Gupta
Introduction
The Firestore extension allows you to integrate Firebase Firestore into your app. Thanks @Saithrishik for your support!
Specifications
Package: in.sarthakdev.firestore
Size: 74.34 KB
Version: 1.0
Minimum API Level: 7
Updated On: 2025-05-30T18:30:00Z
Built & documented using: FAST v3.4.1
License: Sarthak's AI2 Site - license
Events:
Firestore has total 10 events.
FailedToInitialize
Triggered when Firestore initialization fails
Parameter | Type |
---|---|
errorMessage | text |
FirestoreInitialized
Triggered when Firestore is initialized
GotAllDocs
Triggered when all documents are retrieved
Parameter | Type |
---|---|
documents | list |
GotDocument
Triggered when a document is retrieved
Parameter | Type |
---|---|
document | list |
GotQuery
Triggered when query results are retrieved
Parameter | Type |
---|---|
documents | list |
OnFailure
Triggered when an operation fails
Parameter | Type |
---|---|
message | text |
OnListenerModified
Triggered when a document is modified (via polling listener)
Parameter | Type |
---|---|
document | list |
OnListenerRemoved
Triggered when a document is removed (via polling listener)
Parameter | Type |
---|---|
document | list |
OnSuccess
Triggered when an operation succeeds
Parameter | Type |
---|---|
message | text |
TokenVerified
Triggered when an ID token is successfully verified
Parameter | Type |
---|---|
claims | list |
Methods:
Firestore has total 15 methods.
AddDocument
Adds a new document to a collection
Parameter | Type |
---|---|
collectionPath | text |
documentData | list |
DeleteCollection
Deletes an entire collection (deletes all documents in it)
Parameter | Type |
---|---|
collectionPath | text |
DeleteDocument
Deletes a specific document
Parameter | Type |
---|---|
documentPath | text |
GetAllDocs
Retrieves all documents from a collection
Parameter | Type |
---|---|
collectionPath | text |
GetDocument
Retrieves a specific document
Parameter | Type |
---|---|
documentPath | text |
GetDocumentQuery
Executes a query on a collection (simple where clauses). QueryConditions: list of [field, operator, value]
Parameter | Type |
---|---|
collectionPath | text |
queryConditions | list |
InitializeFirestore
Initializes the Firestore Web API. Must set ApiKey and ProjectId first.
NewDocument
Creates a new document reference (path) in a collection. If documentName is empty, Firestore generates one.
- Return type:
text
Parameter | Type |
---|---|
collectionPath | text |
documentName | text |
RegisterListener
Registers a real-time listener (polling every few seconds) on a collection. Fires events for modifications and removals.
Parameter | Type |
---|---|
collectionPath | text |
RemoveAllListeners
Removes all registered listeners
RemoveListener
Removes a specific listener on a collection
Parameter | Type |
---|---|
collectionPath | text |
SetDocument
Sets a document at a specific reference (overwrites or creates)
Parameter | Type |
---|---|
documentPath | text |
documentData | list |
SetFieldWithMerge
Sets fields in a document with merge option
Parameter | Type |
---|---|
documentPath | text |
documentData | list |
UpdateDocument
Updates an existing document (partial update; same as merge)
Parameter | Type |
---|---|
documentPath | text |
documentData | list |
VerifyAuthToken
Verifies a Firebase ID token (JWT). Returns decoded claims as YailList if valid.
Parameter | Type |
---|---|
idToken | text |
Designer:
Firestore has total 2 designer properties.
ApiKey
- Input type:
string
ProjectId
- Input type:
string
Setters:
Firestore has total 2 setter properties.
ApiKey
Sets the Firebase API Key (Web API key).
- Input type:
text
ProjectId
Sets the Firebase Project ID.
- Input type:
text
Purchase the Extension 
The extension is available for just 11.99$. Purchase from below!
https://buymeacoffee.com/techxsarthak/e/416056