Skip to content
Advertisement

Tag: google-cloud-firestore

Data rendered on the screen but has error on the console (Firebase with Vue): Uncaught (in promise) TypeError: Cannot read property ‘contents’ of null

I’m trying to get lesson.contents to render on the screen but I have some errors on the console. Here is the code (I’m using Firebase with Vue 3) Then I have this error: What I’m confused is that I’m still able to render lesson.contents on the screen: I’ve been trying a few hours trying to fix it but I could

I can`t read the data after I update my rules on firestore (React Native)

the rules I set is allow read: if resource.data.uid == request.auth.uid; how I call it is like this How can i fix it? firebase rule image for the data https://1drv.ms/u/s!Ag7uBMx2FuEijuILje2xJIv8RawcFA?e=Gy6jeC Answer Rules don’t filter data on their own. Instead they merely ensure that the data that is being requested matches your rules. So your query needs to match the rules,

Firestore: Conditional query not executed

This logs the snapshot: This doesn’t: Does anyone know why? Answer Since you are combining the ‘>=’ and ‘==’ operators, Firestore needs to build an index for this query. If you catch the error with a try/catch block, you will see the corresponding error, and, even better, the error message includes a direct link to create the missing index in

Advertisement