Questions tagged [google-cloud-firestore]
Cloud Firestore is an auto-scaling real-time document database for storing, syncing, and querying data for mobile, web and server development.
google-cloud-firestore
42,813
questions
495
votes
28
answers
438k
views
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase
I am building a Flutter application and I have integrated Firebase, but I keep getting this error when I click on a button either to register, login, or logout. I have seen other people have asked the ...
441
votes
5
answers
188k
views
What's the difference between Cloud Firestore and the Firebase Realtime Database?
Google just released Cloud Firestore, their new Document Database for apps.
I have been reading the documentation but I don't see a lot of differences between Firestore and Firebase DB.
The main ...
365
votes
32
answers
554k
views
firestore: PERMISSION_DENIED: Missing or insufficient permissions
I am getting the Error
gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException:
PERMISSION_DENIED: Missing or insufficient permissions.
for the below code on else statement
...
332
votes
30
answers
291k
views
Cloud Firestore collection count
Is it possible to count how many items a collection has using the new Firebase database, Cloud Firestore?
If so, how do I do that?
320
votes
7
answers
661k
views
How can I solve the error 'TS2532: Object is possibly 'undefined'?
I'm trying to rebuild a web app example that uses Firebase Cloud Functions and Firestore. When deploying a function I get the following error:
src/index.ts:45:18 - error TS2532: Object is possibly '...
316
votes
9
answers
159k
views
What is Firebase Firestore 'Reference' data type good for?
I'm just exploring the new Firebase Firestore and it contains a data type called reference. It is not clear to me what this does.
Is it like foreign key?
Can it be used to point to a collection ...
278
votes
6
answers
123k
views
Difference Between Firestore Set with {merge: true} and Update
In Cloud Firestore there are three write operations:
add()
set()
update()
In the docs it says that using set(object, { merge: true }) will merge the given object with the existing document.
The same ...
273
votes
12
answers
114k
views
Separate dev and prod Firebase environment
I am considering using Firebase as MBaaS, however I couldn't find any reliable solution to the following problem:
I would like to set up two separate Firebase environments, one for development and one ...
260
votes
35
answers
561k
views
error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class
First time using firestore and I'm getting this error. It seems to be a problem with Ivy, from my research. I don't have a lot of experience modifying tsconfig.app.json, which is the direction I've ...
219
votes
12
answers
462k
views
NullInjectorError: No provider for AngularFirestore
I'm learning Angular looking for help in fixing the error:
I'm following this link : https://github.com/angular/angularfire2/blob/master/docs/install-and-setup.md
to create a angular small app with ...
216
votes
28
answers
168k
views
Google Firestore: Query on substring of a property value (text search)
I am looking to add a simple search field, would like to use something like
collectionRef.where('name', 'contains', 'searchTerm')
I tried using where('name', '==', '%searchTerm%'), but it didn't ...
215
votes
26
answers
206k
views
How do I convert a Firestore date/Timestamp to a JS Date()?
I am trying to convert the below date to a javascript Date() object. When I get it back from the server, it is a Timestamp object,
Screenshot from Firebase Firestore console:
When I try the ...
211
votes
11
answers
220k
views
type 'List<dynamic>' is not a subtype of type 'List<Widget>'
I have a snippet of code which I copied from Firestore example:
Widget _buildBody(BuildContext context) {
return new StreamBuilder(
stream: _getEventStream(),
builder: (context, ...
209
votes
14
answers
106k
views
Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio
I am attempting to use firestore with a Flutter app in latest version of Android Studio. I have followed these instructions exactly. https://www.youtube.com/watch?v=DqJ_KjFzL9I&list=...
205
votes
12
answers
195k
views
How to add Document with Custom ID to firestore
Is there any chance to add a document to firestore collection with custom generated id, not the id generated by firestore engine?