Angular: conditionally render based on whether value was received from Firebase DB

I have a component: export class MainpageComponent implements OnInit { items: Observable; displayElement = false; //whether we will display the elemet or display a loading thing …

share firestore collection paths across admin and web

I’d like to make re-usable functions that get the Firestore Document/Collection reference across web and admin (node.js). for example: getUserDocumentReference(company: string, user: string) { …

Querying multiple collections of firestore using array-contains-any

I am trying query a number of documents in different collections with array-contains-any, by using Promise.all() to get all the documents at once. I’ve checked whether the path is correct, whether the …

How does google firebase save users data so that every time the user logs on, the previous work they did on the website is still there? [closed]

How does google firebase save users data so that every time the user logs on, the previous work they did on the website is still there? I watched a couple videos and saw that people use the Real-time …

Add a new image with the existing image list in firestore database

I have already two images in the firestore database, I am trying to add a new image to this list? How can I add a new image to the existing image list?

how to remove duplicating values in rows

Is possible to remove duplicate values on html while updating in my firebase? Js codes: const tempRef = firebase.database().ref(‘Group1’); tempRef.on(‘value’,gotData) function gotData(data){…

Firebase Cloud Functions – Issues with Promises

When running my Firebase Cloud Function orgNew there seems to be something not working correctly with my promises and the order in which the code is executed. Console log (shortened): 1: Function …

How to declare a variable from a firestore query?

this piece of code works when I press save in visual studio code. But If I refresh the preview page in the browser it shows me this error: Unhandled Rejection (FirebaseError): Function Query.where() …

Using firebase authentication and firestore to add user

Im trying to use user to the authentication of firebase and also firestore. Whhen I click on Save, the function SavePress is activated. The first time I click on this button, the user is added to …

Firebase Javascript Read From Database and Insert Each key into HTML

I am working on a Javascript project and am trying to read all the keys in my firebase database and inserting each and every entry into its own HTML heading. Although I have run into a problem where …