Cloud Firestore
Last updated
Was this helpful?
Last updated
Was this helpful?
Learn how to perform CRUDL operations with Cloud Firestore. Start with .
Open the project and . Choose the Code action step and insert a code that will load your Firestore collection.
Then, press the Run Action button and open the Result section. You must have your collection's data loaded there.
Insert the code below to read the document's data:
Press the Run Action button and open the Result section. You will see the document's data.
Press the Run Action button and open the Result section. You must have a new record there.
Press the Run Action button and open the Result section to check that the record has been deleted.
You can update the data in Cloud Firestore with 2 methods: set()
and update()
. The difference is, set()
will overwrite the whole document.update()
will update only certain fields that need to be updated. Let's check both of the approaches for updating your Firestore data.
set()
update()
For the update() method, type in the below Code:
Click Run Action and check the Result section for the outcome.
More useful articles on how to further manage your data:
To fetch data about a certain document, start with and selecting the Code step.
Let's create a new record in Firestore. First of all, we need to . Choose a Code action type and insert the code that will create a new record in your Firestore.
Let's delete a record from Cloud Firestore. and select a Code action step. Type in a code:
and selecta Code action type. The code would be as follows:
All the other operations with the Firestore collections like Filter, Order can be done via the Firestore API. You can find an API reference .
.
.