-1

I'm a newbie in firebase realtime database. i have got a data structures as below. How can i update a new property (TimeOut) at the same node without loss current properties?

I would appreciate it if someone could help me this issue

enter image description here

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
NamVu
  • 15
  • 2

1 Answers1

0

If you only have to add the property to the node that you're showing that'd be:

firebase.database().ref('18-9/Working/TimeOut').set('5:20:30');

Or

firebase.database().ref('18-9/Working').update({ TimeOut: '5:20:30' });
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • i'm really sorry to make some bother, i just has created the same new topic question (edit version) with firebase config and my code to update new property(TimeOut), could you please to check it and give me some advise ? https://stackoverflow.com/q/73760345/20023345 – NamVu Sep 18 '22 at 05:42