I have a big collection with several thousand documents. These documents have subcollections with documents inside. Now I deleted a lot of the documents on the highest level. Structure: MyCollection => MyDocument => MySubcollection => MySubdocument Now I realized, that the files are deleted (not showing up in any query) but the subcollections and their documents still exist. Now I
Tag: google-cloud-firestore
How do I query a user’s info in Firestore if all my document IDs are auto-generated?
All of the examples I’m finding online have very simple document IDs, but what do you do if you’re auto-generating all your IDs (as the docs say you should)? For example, I want to query the date when the user was created. The document ID for this is below, but I’ve just copy-pasted it from the Firestore console. How would
How to retrieve a list of custom objects from Cloud Firestore in Android
I posted before but was not aware of the post standards for questions, so I have reformatted with code to back my issue. I’m working on an app that uses Google Maps to take you on local tours and keep track of which Landmarks you have visited. I have managed to write to the database (As shown in picture), but
Can’t get custom Object from Firestore
I’m trying to create a custom object from a document in the Firebase Firestore. Whenever I try to use the User object, I get a NullPointerException on the user object: I call getUserFromFirebaseUser here: Here is the User class: I’m relatively new to using Firebase with Android. Any help is appreciated. EDIT I’ve added Log statements to the onComplete() method
Make the user waiting for activity to finish loading
everyone, I am working on a project that retrieves data from firestore and some of that contains URL for an image. when I start the app I notice a delay when loading the image. so I thought about what I’ve seen in the Facebook app that when loading an image showing a view with some animation to inform the user
Firestore Could not deserialize object. Failed to convert value of type java.util.HashMap to Date
I’m trying to read a field from the first document in a Firestore Collection but I get the following error: Could not deserialize object. Failed to convert value of type java.util.HashMap to Date I have a Firestore Database that looks like this: The “User Routes” collection contains documents named after each User’s ID. Inside those documents are multiple “Route” collections.
no FireBase FireStore , is it possible to read only until you find a specific document?
I have an app that a user registers animals, these animals are separated by lot, so, to know where the animal is, the user just types his TAG and I look for the tag in all lots of my database, example: Collection> Lots Documents: Lot+NumberLot (Lot+number is the ID, for example: Lot01, Lot02). Within each Document Lot+NumberLot I have a
How to manage Offline Update state of document in Firestore database withing time interval
I’ve created an application in which I’ve used a Firestore database. Now my tasks are this, User can take action of update document within time duration. I mean if the user tried to update while online mode then there is no problem But if the user device have connection issue of poor network connection then this update action should be
How to use WriteBatch with Firebase storage?
I’m using Firebase cloud database and firebase storage. I’m using the following code in order to remove two documents using WriteBatch: I want also to remove the image from the storage using WriteBatch, meaning, if one of them fails, they all fail to remove. I have a variable called imageURL which contains the URL of the image in the firebase
How to retrieve the data from firestore in maps
Is there any way to retrieve the data from firestore in Maps. I am trying but its returning null here is my code But I am getting NullPointerException here Here is the screenshot of the database I am not getting i why getdata function is returning null Here is the error log Answer You are getting null because the database