Given a given Firestore path what's the easiest and most elegant way to check if that record exists or not short of creating a document observable and subscribing to it?
相关问题
- adding sha1 in firebase app fails with error
- firebase storage cors strange Behaviour
- Firebase security rules difference between get() a
- Firebase security rules difference between get() a
- LoginActivty with Firebase & Facebook authenticati
相关文章
- How can make folder with Firebase Cloud Functions
- Firestore Update a document field Using Rest API
- How to convert a FCM token to APNS token?
- App not showing Notification receiving FCM when th
- Android Studio - Get Firebase token from GetIdToke
- How to combine Firestore orderBy desc with startAf
- Remove Duplicates from an Array of GeoFire Objects
- Is it possible to test a Firebase trigger locally?
Taking a look at this question it looks like
.exists()
can still be used just like with the standard Firebase database. Additionally, you can find some more people talking about this issue on github hereThe documentation states
Check this :)
I Encountered Same Problem recently while using Firebase Firestore and i used following approach to overcome it.
task.getResult().isEmpty() provides solution that if documents against our query was found or not