I undestand that I need an index for longer search querys in firestore. I am querying my docs like this: There are curretnly 5 tags in total, so do I have to create an index for every possible combination of tags? Because if so, I think I would have to have 120 (5 * 4 * 3 * 2) indexes.
I am having trouble deleting on firestore here’s my delete but everytime i try to delete nothing happens . There’s no error at all . this is how I set that collection Answer If you want to delete all the docs of the messages (sub)collection, you need to query the collection and delete each document, for example by using Promise.all()
I am having issue whenever I catch an error and return from a function, by code after the catch block still runs. Here is my two functions that I use: I would greatly appreciate any help for this problem, as I have been struggling with it for over 2 days now and can’t seem to find a solution. Answer In
so I wrote a method to look through all the users in my firebase firestore database in react native and it looks like this: My data is listed by the user id, and one of the direct document fields is username. As you may tell, looking through every single one of the documents to find a matching username is very