Trying to do a basic check if the done element of the document's data is true.
exports.watchTodos = functions.firestore.document('users/{uid}/todos/{docId}')
.onUpdate(async (snap, context) => {
if(snap.after.data().done){
console.log('is done')
},
}
But the console.log never executes, but if I log snap.after.data().done it returns true.