I'm trying to get the uid of the user, the uid is in the path of the document that has been changed but not sure how to extract it from the path?
exports.watchTodos = functions.firestore.document('users/{uid}/todos/{docId}')
.onUpdate(async (snap, context) => {
// get the uid of the user
}