How to update the child in firestore using node.js ? Here is my data :
{ firstName : "youg",
id: 9,
lastName : "Nue",
room : {
floor : 14,
no : 103
temp : 50
}
}
I tried update, but failed :
const studentId = '1tqfC07qO8zrVApOYVSU';
await db.collection('students').doc(studentId).update( {
'room\floor' : '12'
}
);
Thank You.