This question already has answers here:
Cloud Firestore: Enforcing Unique User Names
(8 answers)
I want to make unique usernames in firebase/firestore
(1 answer)
How to enforce Uniqueness in a Property of a document field in Google Cloud Firestore
(1 answer)
Closed 6 months ago.
On my site, I am giving an option to set the unique user name
it's unique so no same user name can be placed
Related
This question already has answers here:
How to delete document from firestore using where clause
(12 answers)
Firestore perform delete based on condition [duplicate]
(2 answers)
Closed 9 months ago.
how to delete many documents from firebase using where condition
I have two collections issues and orders and i want to delete issues where its orderID is equal to orderID
issuesCollection.where('orderID', isEqualTo: orderID).snapshots().foreach((f){f.delete()})
This question already has answers here:
Does a collection('name').get() counts as 1 read, or as many reads as documents inside that collection?
(1 answer)
Firestore read count when read documents size
(1 answer)
How many reads in Firestore am I performing?
(2 answers)
Closed 11 months ago.
A "read" in Firestore is counted as?
Let's say I have a collection called "users" containing 10000 documents and when I give a getDocuments with a "where" it returns only one (1) document, in which case the reading will be 1 or 10000?
This question already has answers here:
Firebase android : make username unique
(4 answers)
Cloud Firestore: Enforcing Unique User Names
(8 answers)
How do you prevent duplicate user properties in Firebase?
(2 answers)
Enforcing unique usernames with Firebase simplelogin
(2 answers)
Closed 1 year ago.
Hello this is a silly and simple question
I know that FireBase Auth does not storage any type of username.
So what should I do, storage all the username in a file in FileStorage, and then check for a match, Wouldn't that take too long?
Any documentation or guide will help a lot
Thank you!
This question already has answers here:
Firebase Firestore: Is there a way to enforce required fields for all documents in a collection?
(3 answers)
Closed 2 years ago.
I'm creating a Firestore Database that has a "devices" collection then each device has its own document. I already have a device with various fields.
Is there any way I can create a template where the document fields remains the same for all documents and I can just fill in the values upon adding a new device from the Firebase console?
Documents in Firestore only contain exactly what you put in there. There are no "default" or "understood" fields. If you want a document field to contain some value, you will have to write it into each document.
This question already has answers here:
How to get a list of document IDs in a collection Cloud Firestore?
(4 answers)
Closed 5 years ago.
Is it possible to get only documents name as a String array without retrieving any collections? I couldn't find any documentation about it.
There is no API to retrieve only the document names in the SDKs. But the REST API has a list call that seems to do precisely that.