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 …

Retrieve data from multiple documents from Firestore

I tried a lot of times but I am still not able to retrieve data from multiple documents, The below screenshot shows that I have 3 documents in my collection and my question is how to retrieve data …

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?

sendGrid + firebase cloud functions: Email is not sending with Callable functions

I’m new to javascript and I’m trying to send email with the firebase callable functions. the idea is to send code to user email from a cloud function when called from the iOS app. But the thing is, …

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 …

I can`t read the data after I update my rules on firestore (React Native)

the rules I set is allow read: if resource.data.uid == request.auth.uid; how I call it is like this return async (dispatch) => { await firebase .firestore() .collection(“…

FIREBASE getting document data

I’m making an app and trying to get product data by it’s id inside a modal in ionic 4. I’m using typescript to do it but without luck. Because de calls to firebase are asynchronous i cannot get the …

Firestore: Conditional query not executed

This logs the snapshot: const db = firebase.firestore(); const collection = db.collection(`companies/${company}/meetings`); let query = collection.where(‘start’, ‘>=’, new Date()); const snapshot = …