update new attribute into exists node firebase(realtime database)

Viewed 24

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

1 Answers

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' });
Related