Estoy tratando de actualizar un campo de subcolección, que está en una matriz, pero no puedo acceder a where(). ¿Qué estoy haciendo mal?
async updateDialogueStatus({ state }, data){ const whoDis = this.$fire.auth.currentUser if (data.dialogue.length > 0) { const lastDialogueInArray = data.dialogue.slice(-1)[0]; const db = this.$fire.firestore; db.collection('conversations') .doc(data.id) .collection('dialogue') .where("messageId", "==", lastDialogueInArray.messageId) .update({ status: "read", readBy: whoDis.email }) } else {Recibo este error: Uncaught (en promesa) TypeError: db.collection(...).doc(...).collection(...).where(...).update no es una función