Realtime Database
Learn how to perform CRUD operations with Firebase Realtime Database
Last updated
Learn how to perform CRUD operations with Firebase Realtime Database
Last updated
Start with adding Realtime Database as your data source.
To read the data, follow the steps below:
Add a Code step
Type in the code below and Run Action:
4. Check the Result tab - the data should sit in there.
To add a record:
Select Code step and type in the code
Run Action:
4. Check the Result tab to find a new record created.
Updates can be executed using 2 methods: set()
and update()
. Let's check both of them.
Start with adding a new action
Select Code step and type in the below code depending on the selected method:
set()
Note that set()
can overwrite your data, while update()
just updates the required fields
update()
3. Click Run Action 4.Check the Result section to for the outcome - the requested records should be updated with the new values.
Set Code step and insert the Code
Run Action
4. Check the Result section to check that the record has been removed.
All the other operations with the Realtime Database data like Filter, Order can be done via the Firestore API. You can find an API reference here.
More useful articles on how to further manage your data: