Use the child methode to navigate through the objects

PHOTO EMBED

Sat Jun 05 2021 09:30:02 GMT+0000 (Coordinated Universal Time)

Saved by @nerdydave #javascript

database.ref('parent').child('child-1').child('child2').set('value');

alternative:
database.ref('parent/child-1/child-2').set('value');
content_copyCOPY

This snippet works when wanting to navigate through an object to get the corresponding key.