Firestore

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

Firebase Firestore componet for storing data



Methods

You can set the below method blocks in the blocks section of the builder.

AddDocument

Add a new document with a generated id.

DeleteCollection

Deleted collection.

DeleteDocument

Deleted document.

GetAllDocs

Gets the complete list of documents in the collection, returning to "GotAllDocs."

GetDocument

Gets the Document by returning a Dictionary in "GotDocument".

GetDocumentQuery

Get a list of documents according to the query, returning it in "GotQuery".

InitializeFirebase

Initializes the SDK.

NewDocument

Create a new empty document with a specific name, if you want to create it by generating an id leave the documentName field empty.

RegisterListener

Register a listener and if there are changes to the collection it will return to OnListenerAdded, OnListenerModified, OnListenerRemoved.

RemoveListener

Removes the listener.

SetDocument

Set the documents.

SetFieldWithMerge

Update one field, creating the document if it does not already exist.

UpdateDocument

Updates the document.


Events

You can set the below event blocks in the blocks section of the builder.

GotAllDocs

Event returns all documents.

GotDocument

Returns the document in the dictionary type obtained from "GotValue".

GotQuery

Event returns a list with the selected data.

OnFailure

Returns the error message.

OnListenerAdded

When registering the listener, this event will be called when adding a field to the collection.

OnListenerModified

When registering the listener, this event will be called when modifying a field in the collection.

OnListenerRemoved

When registering the listener, this event will be called when removing a field from the collection.

OnSuccess

Returns the event if any method is successful.