I have an android app using firebase Firestore, and I need to run a calculation on a large (>1000) number of documents. Normally in a query response a database would specify some metadata to …
Tag: google-cloud-firestore
I have a query to firebase where i get all products, but i need to add a condition to show products from that type only if the type is different of empty string this is the static query that is …
I have developed a game using Firestore, but I have noticed some problems in my scheduled cloud function which deletes rooms that were created 5 minutes ago and are not full OR are finished. So for …
I want to clean my collection data. I have the collection name “teams”. It has data and sub-collection name “players”. I have deleted “teams” document by simple delete …
I am new in firebase I want to know how to set security rules to prevent updating of data by other users in firebase. I working on a blog app where user can login and write their blogs and I want to …
I’m using firebase to create a collection of questions and sub-collection of answers. I’ve been able to render the collection and sub-collection successfully with react. The issue happens when I’m …
I have a web app I’ve been working on using firebase and I recently hit a block. I am trying to query the contents of a collection and, then run some further code depending on whether or not the query …
I need a cloud function that triggers automatically once per day and query in my “users” collection where “watched” field is true and update all of them as false. I get “13:26 …
here is the code im using to listen to changes in my firestore database: async mounted() { let id = []; let orders = []; await db.collection(“orders”).onSnapshot(doc => { …
I created a React custom hook which listens to firestore database, i followed the documentation in firebase website but I’m having trouble when I re-render the component. When I refresh my app the …