Skip to content Skip to sidebar Skip to footer
Showing posts with the label Google Cloud Firestore

Returning Data From Firebase Firestore Async

I have two methods: //authContext.js const getAllUserData = (dispatch) => { return async (… Read more Returning Data From Firebase Firestore Async

Filter A Collection Group Query In Firestore

I have a database structure as follows (simplified for purposes of this question): Collection: item… Read more Filter A Collection Group Query In Firestore

Add Object Data To Existing Firebase Document

I’m having problems finding the the right approach to adding new data to a Firebase document (using… Read more Add Object Data To Existing Firebase Document

Firestore: How To Correctly Update Multiple Docs With A Query

Base on this: Can Firestore update multiple documents matching a condition, using one query? I do b… Read more Firestore: How To Correctly Update Multiple Docs With A Query

Generate Firestore Document's Doc Id Based On Users' Uids

In my chat app, I have private chat between the two users. I intend to set the chat document's … Read more Generate Firestore Document's Doc Id Based On Users' Uids

Typeerror: This.path.replace Is Not A Function At New Firestoredelete

Trying to remove the users`s data calling a function from app. 'use strict'; const function… Read more Typeerror: This.path.replace Is Not A Function At New Firestoredelete

Firebase Functions Issue And The Difference Between .add() Vs. .doc().set()

I face the following issue since a few weeks (hasn't been an issue before): 1 .add(data) const … Read more Firebase Functions Issue And The Difference Between .add() Vs. .doc().set()

Firestore, Onsnapshot() Or Async/await Issue Or Both

I'm trying to get an array of changes using Firebase Firestore's onShapshot(). I'm havi… Read more Firestore, Onsnapshot() Or Async/await Issue Or Both

Database (firestore) Call Is Only Taking The First Value

I want to make a call the database (firestore) to return the data of the products in real time that… Read more Database (firestore) Call Is Only Taking The First Value

How To Get The Records Which Are Offline In Firestore

I want to go offline and add 1 entry in cities collection using this code below: firebase.firestor… Read more How To Get The Records Which Are Offline In Firestore

How Do I Get Data From Two Collections In Firestore?

I have the following problem. I try to manage a n to m structure with firebase. Therefore i made th… Read more How Do I Get Data From Two Collections In Firestore?

How To Avoid Nesting Promises In If Statement

I know we should not nesting promises in functions and all my functions are without any nesting at … Read more How To Avoid Nesting Promises In If Statement

Get Document Id When Searching With Where Clause Firestore

I want to be able to get the document id of a document that I have just queried with a where clause… Read more Get Document Id When Searching With Where Clause Firestore

Firestore Query In Function Return

I have array in Firestore which I would like to use in many places. The best for me would be to hav… Read more Firestore Query In Function Return

How To Update Or Set Property Of Firestore Document After .oncreate Cloud Function Trigger

I'm currently trying to integrate Stripe with my Firebase's Cloud Firestore db through usin… Read more How To Update Or Set Property Of Firestore Document After .oncreate Cloud Function Trigger

Is There A Way To Query For A Firestore Collection To Get The Number Of Times A Field's Value Occurs?

What I am trying to do is to query a Collection in such a way that: 1. I can get the number of time… Read more Is There A Way To Query For A Firestore Collection To Get The Number Of Times A Field's Value Occurs?

Unable To Subscribe After Forkjoin

I want to perform some firebase operation inside a loop in angular. When I send an HTTP request to … Read more Unable To Subscribe After Forkjoin

How To Get Firebase Array Of Documents Ids From Colletion Where Documents Have No Data But Only Sub Collections?

I don't know if this is a bug with Firebase, or maybe it's stated in their documentation, I… Read more How To Get Firebase Array Of Documents Ids From Colletion Where Documents Have No Data But Only Sub Collections?

In What Date Format Should I Store In The Firestore To Create A Dynamic Report Of Per Month?

I have a project to store the vaccination status of the users such as their 1st dose and 2nd dose. … Read more In What Date Format Should I Store In The Firestore To Create A Dynamic Report Of Per Month?

Google Firestore - How To Get Several Documents By Multiple Ids In One Round-trip?

I am wondering if it's possible to get multiple documents by a list of ids in one round trip (n… Read more Google Firestore - How To Get Several Documents By Multiple Ids In One Round-trip?