Most voted "firestore" questions
Cloud Firestore is a cloud-hosted Nosql database that iOS, Android, and web apps can access directly through native Sdks. It is also available in native Sdks Node.js, Java, Python and Go, as well as in REST and RPC Apis.
Learn more…65 questions
Sort by count of
-
4
votes2
answers529
viewsFlutter - How to pass Firestore ID list to a Futurebuilder?
I’m developing a book app and need help uploading the user’s favorite book list. I don’t know the way I’m doing it would be the right one, I’m saving the Ids of all the books that the favorite user…
-
2
votes2
answers1101
viewsCloud Firestore - Composite query
I’m making a query in my database in the firestore, but when I put two where nested, I get the following error: Error getting documents Error: Firestore: Operation was rejected because the system is…
-
2
votes0
answers40
viewsContent of a form field as research parameter
I have a form with the following fields (I will put only one, as an example): <div class="form-group"> <label for="nomeAutor"><i class="zmdi zmdi-account…
-
2
votes1
answer195
viewsFirestore Timestamp
I’m doing a show with Firestore of a record. When the date is saved in the database, it is saved as Timestamp (For example: Timestamp(Seconds=149914800, nanoseconds=0)), but when I open the plug…
-
2
votes0
answers182
viewsAccessing sub-collection in snapshot.data
Hello, I build one ListView with a FutureBuilder. But I need to access a sub-collection, then a document and get a field from the document. But returns null, how do I do that? For example: To get…
-
2
votes1
answer58
viewsHow to always register data in the last generated Event?
In my code every time I perform a criminal record a document is created. I wonder if you have how to register information in the latter document generated instead of generating another. I’m doing it…
-
1
votes1
answer301
viewsMysql structure in firebase/firestore
How to create a collection 1:1 and 1:n in firebase, as in the images, where I have company tables, city and categories, as would the relationship between them in the firestore, mainly the relation 1…
-
1
votes0
answers54
viewsAndroid Firestore - Add collection
I’m new to Android, and I have a JSON file with address data from markets in my region and would like to import this data to firebase, more precisely to the Cloud Firestore. Does anyone know how to…
-
1
votes1
answer195
viewsHow to read a Firestore document?
I need to know how to read a specific document I saved on Firestore, without having to copy "documentPath" manually from the Firestore Cloud Console! How does it automatically? Next, I put part of…
-
1
votes0
answers39
viewsAdd multiple Documents to the Firestore via a Map
Hello. I have a firestore with the following structure: bd: students: license plate dado1 dado2 dado3 Students is a collection, and each enrollment is a document. I have a hashmap of , where the…
-
1
votes2
answers109
viewsAdd rule so only admin can list all documents from a collection in the firestore
Hello, I’m studying how the firestore security rules work and I came across the following situation. I have a collection called: "restaurants" with three documents "uid1, uid2 and uid3". That’s…
-
1
votes2
answers146
views -
1
votes0
answers22
viewsHow to create Typescript interface that reflects firestore structure
Good morning, I’m getting data from firebase firestore with a structure that I’m having trouble representing as a model in Typescript, that is, an interface. I made a JSON representation to…
-
1
votes1
answer58
viewsHow to create a class to connect to in Firebase?
I’m trying to create a class where I’ll connect in the Firestore of Firebase, and then I’ll take this class and instantiate it where necessary, I made this part of the code but I don’t know what…
-
1
votes1
answer118
viewsError using firebase.firestore.Fieldvalue.serverTimestamp() method in an array
I am creating a system of questions and answers, and in this system and this system I need the answers to enter an array with the name of the respondent, the value of their response and the…
-
1
votes1
answer69
viewsJavascript variable created with get() in firestore document field
I need to feed a variable the contents of the field "site" of the document pre-selected in a collection "restaurants" in the Firestore, to then provide the hyperlink of the site with the tag…
-
1
votes1
answer365
viewsError retrieving URL from Firebase, Flutter
Good night!!! I am developing an app in which it is possible to post photos. The user opens the camera (or picks it up from the gallery with Imagepicker) and clicks a button on the Appbar. When…
-
1
votes1
answer103
viewsError :"Getlifecyclebase" not found. You need to call "Get.put(Getlifecyclebase())" or "Get.lazyPut(()=>Getlifecyclebase())"
I’m using getx for state management and I’m having a mistake that says the following: "Getlifecyclebase" not found. You need to call "Get.put(Getlifecyclebase())" or…
-
0
votes1
answer111
viewsSave a function’s results to an Ionic variable 3 + Firestore
How to save the result obtained in r.get('Quant') in a variable and return its value, because the first console.log shows the data I obtained, but the second does not, and the Return Quant always…
-
0
votes0
answers49
viewsAndroid - Firestore - Searchview
how can I perform a search with firestore? for example, if you type a city, list the data related to that city. Thanks
-
0
votes2
answers252
viewsDelete firebase firestore collections
I have N collections created in my Cloud Firestore, and I would like to delete all of them if possible, as if I were going to reset my database because they were inserted wrong. I wonder if there is…
-
0
votes1
answer309
viewsUse more than one Firebase database in an app created in Flutter
Good evening Guys, I’m designing an app and I’m thinking about using flutter and Firebase. My project consists of a customer register where each company can have its customer portfolio online. Is…
-
0
votes0
answers62
viewsUse firebase custom authentication method in Vuejs
I am trying to run firestore authentication through a custom token (JWT). However I am facing problems to do so. The firestore documentation asks us to install the 'npm firebase-admin' library,…
-
0
votes1
answer1836
viewsHow to change the color of an Icon through Boolean Return in Flutter?
I have a method that queries books that are favorite in the Firestore database, the book page has a star icon in black color, use isFavorite method to query whether the open book is preferred by the…
-
0
votes1
answer171
viewsError: The requested client requires the gRPC Extension | gRPC + App Engine + Firestorm
Good morning, I am developing an application that will receive data via post and will insert in a database firebase/ firestore, local I managed to run successfully, but when I go up to the google…
-
0
votes1
answer157
viewsCreate array with Firebase return data
You would need to create a new array from the return of the Firebase image URL The newImgList array receives nothing. task ts. imgList: []; newImgList: any = []; constructor(...) { this.tarefaId =…
-
0
votes1
answer27
viewsWhat is the correct way to recover an Arraylist<Long> from the firestore cloud?
I am using the following code to try to recover an Arraylist from the firestore: List<Long> longs = (List<Long>) task.getResult().getDocuments().get(i.get()).get("longsArray"); However…
-
0
votes1
answer123
viewsWhat’s the best way to check if a collection exists in the cloudFirestore (Android)?
I am having trouble verifying the existence of a collection. I am using the following code to perform this function: FirebaseFirestore.getInstance().collection("ID da COLEÇÃO").document("ID do…
android android-studio firebase firestoreasked 4 years, 3 months ago André Luiz Alexandre de Souza 3 -
0
votes2
answers65
viewsHow to make a filter with != or Isnotiqualto in the Firestore?
Hello! I need to make an appointment with filter on firestore but I read in the documentation that they do not have "!=" or "Isnotiqualto" to create a restriction. I wanted to do something like:…
-
0
votes2
answers434
viewsHow to recover documents from a Firestore(Firebase) collection in the right way?
I want to recover all documents from an internal collection of a document in the Firestore for an array, in case this collection has 2 documents, however after running the code below the…
-
0
votes2
answers52
viewsHow to use reduce() on a map() with data coming from the Firestore
I have an array of data coming from the firestore. With the data received by the firestore I make a map to make the display available as a table. When I try to make a table reduce to compute the sum…
-
0
votes1
answer548
viewsDart/Flutter verification/validation in the Firebase Firestore database
I’m trying to do a Dart/Flutter check/validation in the Firebase Firestore database to not save the same serial number string twice in the database, but I’m doing something wrong because it keeps…
-
0
votes1
answer129
viewsHow to query by passing an array per parameter in the firestore?
I have a list of documents in the firestore, called shopping. Within each purchase of these, I have a FIELD, called condicaoPagamento, this keeps the condition of payment of the purchase. What I…
-
0
votes1
answer70
viewsUnable to use sdk dialogFlow java together with firestore - Dependency failing
I need to use the dialogFlow sdk along with the firestore sdk. In separate projects I can use normally, but when I join them, there is a dependency failure. My build.Radle: apply plugin:…
-
0
votes1
answer47
viewstrying to delete firestore document, crash error, restart app and not even debuger error message
I’m trying to delete a document, however the app simply closes itself. I’ve tried everything I know, but the error persists. I don’t understand why. The code itself is correct. The general way is…
-
0
votes1
answer548
viewsFirebase data checkbox in Flutter
I created a method that returns data from Firebase and creates a checklist containing the name. The problem is, when I select a checkbox, it selects all of them. What I did was extract Firebase…
-
0
votes0
answers31
viewsCreate an array for Chartjs with Firestore + Angular 9 data
To popular a precise monthly/annual data chart that the Array is grouped by date. Data from the Firestore: this.chartsSrv.chartGeral().subscribe((snapshot) => { snapshot.docs.forEach(doc => {…
-
0
votes1
answer33
viewsHow to get a single database value through the Angularfirestore and show your data via Observable?
That would be the template <div> <form [formGroup]="animalForm" fxLayout="row"> <mat-form-field> <input matInput placeholder="Microchip" formControlName="IdChip" #IdChip>…
-
0
votes1
answer73
viewsSort by date does not work - Firestore
Hello, I have a variable in the database that contains the date in "dd/MM/yyyy" format, when I try to use the orderby of a query with that date firebase uses only the days (dd) to sort my…
-
0
votes1
answer46
viewsHow to create triggers in Firebase functions
I’m working on an application that needs to receive a notification whenever a client opens a request, but I’m not able to create a Rigger so that whenever a new document is opened Firebase will run…
-
0
votes1
answer260
viewsHow to save given type map or array in firestore?
I tried it this way: createProduto(Produto produto){ Map<String, dynamic> model = { "nome" : produto.nome, "descricao" : produto.descricao, "precoCompra" : produto.precoCompra, "itens" :…
-
0
votes1
answer64
viewsStreambuilder does not return value - Flutter
Hello! I’m trying to return location values with StreamBuilder, but I’m not succeeding. In debug, it doesn’t even run Builder. I can’t find the problem. Here I create the Streambuilder, to bring the…
-
0
votes1
answer81
viewsField recording as Null in Firestore Flutter
I’m trying to record a document inside another document (nested Documents) in Flutter with Firestore. The model is a property that has some fields, and next to the fields a collection of comforts,…
-
0
votes0
answers17
viewsI can’t read in Firestore with cloud functions using javascript
Hello person I am breaking my head to know what is missing to make a reading in a collection in the Firestore using cloud functions. follows my code below. const functions =…
firestoreasked 4 years, 3 months ago Toni Pascoal 1 -
0
votes0
answers61
viewsTrouble reading data in Firestore
I’m trying to build an app with Flutter using Firestore as a database. I’m having trouble locating a document’s undercutting. I’m having trouble recovering the data, at the end of the list function…
-
0
votes0
answers40
viewspopular Spinner by Firebasefirestore Android
Good morning guys, I am trying to popular a spinner by the data searched from Firebasefirestore, however when starting the application the spinner becomes "white", when clicking on it shows the list…
-
0
votes0
answers47
viewsFirestore call returning before the end of the run, on flutter
I have a function to search the data in the firestore. I call the function that is in a controller class helper.getTodosAgendures(); Works well. Below a snippet of my firestore search function.…
-
0
votes1
answer38
viewshow to send multiple files to firebase at once with flutter
I need help with this question. I’m new to flutter. and can’t send more than 1 file at the same time to firebase with this code I can send 1 file without problems, but when selecting 2 files in the…
-
0
votes1
answer19
viewsGoogle App Script changing order of firestore sheets
I found a script to integrate Firestore with Google Sheets, but when running it, the columns are in order with each data update. How can I fix this? https://i.imgur.com/Ski4t8q.png A detail: I have…
-
0
votes1
answer50
viewsFirestore React error on
I’m trying to get the information from my collection in firebase but am getting the following error: Typeerror: Undefined is not an Object (evaluating '_firebaseConnection.default.db.Collection')…