I am using Firestore and am getting this error whenever I try to call the data method on a document from a query snapshot. Here is my code.
data
let