In firebase I am trying to create and access a database ref of a child node that has a "push" ID in the middle of the path.
I want to get to the name: "Cooking area" which is inside a department (dept1) which is inside "depts". The problem is that "depts" is inside a database reference that is randomly generated by firebase (the push ID).
My question is: how can I get to the references inside that L3s_dBCdKN4EyRJAi?
export const firebaseApp = Firebase.initializeApp(config);
export const db = firebaseApp.database();
export const spacesRef = db.ref('spaces'); // this WORKS
export const deptsRef = spacesRef.child('depts'); // this DOESN'T!!!