1

So, I was trying to update a certain node of my firebase realtime database, but I not aware of the steps I need to follow to accomplish the task. here is my database:

Database screenshot

<tr>                                       
    {%for k,v in dataDb.items():%}
    {%for key,value in v.items():%}
    <td>{{value}}</td>
    
    {%endfor%}
    <td><a class="a" href="btnDelete">Update</a></td>
    <td><a class="a" href="btnDelete">Delete</a></td>
</tr>
{%endfor%}

Here I'am just tryin to display all the values, But how can i edit a single node?

JD Davis
  • 3,517
  • 4
  • 28
  • 61

1 Answers1

0

According to Pyrebase documentation, you can use update() method to update data for an existing entry. So it would look something like this:

db.child("client").child("MGPDMDfQy...").update({"b": "888-888-8888"})

yibo
  • 517
  • 3
  • 10