Presented below is a snippet of my cloud function
exports.onUpdateEvent = functions.firestore.document('collection/{documentId}')
.onUpdate((change, context) => {
const after: FirebaseFirestore.DocumentData = change.after.data();
const before: FirebaseFirestore.DocumentData = change.before.data();
})
I am curious if there might be instances where either 'after' or 'before' contain values of null or undefined?