Skip to content
Advertisement

Tag: firebase

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,

Firebase and JavaScript: Update fetched data on website from real time database without reloading website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I want to deploy a website to Firebase. The website has to fetch data from the firebase database. If the values from the database has

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