Skip to content
Advertisement

Tag: google-cloud-firestore

Get IDs of deleted documents in firestore

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

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

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.

Advertisement