Category "google-cloud-firestore"

How to bypass field does not exist within the DocumentSnapshotPlatform

I'm receiving this error because some of my contents don't have ['ses'] in firestore. Half of the contents have this and the other half do not have it. How can

How can I listen only to doc that changed in Firestore stream?

I have the following Firestore stream: FirebaseFirestore.instance.collection("users").orderBy("timestamp", descending: true).snapshots().listen((value) async{

update one or more fields inside of a document, without updating all the fields

I have a feature in my program where I have to enter the user's details such as the user's age, height, and weight. This data will be stored in Firestore. this

Cannot read property of undefined data() Firebase

I'm trying to implement redux saga in my old project and i get strange error. I'm getting back the userData with all user details but my middleware logger tells

filter data using list flutter firestore

I am creating a bookstore where customers who have their favorite books have a favBook list and the website displays the name and images of the book of all thei

Firestore V9 Sorting Field by array of objects. Being shuffled on update

In my app, I have lists. these lists are categorized. Each category is stored into Firestore as a doc, along with an array of objects under that doc. The item O

(Firebase Firestore)TypeError: n.indexOf is not a function

I'm trying to add another field value in a document but firebase returns TypeError: n.indexOf is not a function. Here's the code: async function linkLCSN(cor, s

How to search for specific fields in an array of objects containing objects in a document and update them in firestore (firebase) (JS)

// Update the other user that current user has asked for revision export async function updateOtherUserForContractRevision(contractID : string, comments : any)

Assign variable a value oustide a listener in Kotlin [duplicate]

I'm kinda new to Kotlin and Firebase. I have this problem and I can't figure out why it happens. I'm trying to get the Firebase Cloud Firest

why this code isn't working in real-time pleace cheack this code [closed]

this code isn't working in real-time.. it works only whenever I restart/refresh the app. I am using Cloud Firestore. plzz change code am noob

How to run latest chromium/puppeteer on firebase

I do have a working application on firebase, that renders code and delivers a png image as output using puppeteer. However I would like to have a newer chromium

Data retrieving from Database Crashes when in MVVM with the Error Could not Connect To Firestore

I am trying to call data from Firebase and map it to data class while using MVVM but Its showing me errors saying failed to Connect The code of Repository Imple

Flutter Firestore: FirestoreBuilder with initial data

I'm making my first Flutter app and I encounter a problem and doesn't found any solution for it. I have a view where I render a Firestore document, and there is

How to ensure that a job is processed only once with Firebase

I am adding tasks as Docs in a Firestore collection. On the Backend, I have multiple NodeJs stateless instances that process these tasks. All the instances are

How to fix a null object reference on document snapshot

I have an program where the MainActivity display the name and the email of the user on top of the screen by using document snapshot that been stored in firestor

Firebase Read Data Issue (Bad state: Snapshot has neither data nor error)

Showing this problem every time suddenly, There was no issue at first. AVD can run app but in physical device its not even running Column( children: [

Continuously Retrieving data from stream builder

I am trying to implement stream builder with cloud firestore to retrieve field data. Here is the code: @override Widget build(BuildContext context) { retu

How to user filter with Firestore database in React Native?

I want to filter the firestore query to get all docs that do not contain a specific value. I used @react-native-firebase import firestore from '@react-native-fi

How to read data from nested array in Firestore

I have the below structure in my Firestore and I want to read data and store it in ArrayList like I have "amountArrayList" which will read data from the "transa

Android & Firestore - deducting value from an object

General context: The app I'm making manages activities with resources at hand. Once users create cases, the amount of materials each case needs is deducted from