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, …

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(“…

Change fields of documents in a collection Firestore periodically – Cloud Functions

I have a database structure like this: Posts(collection) -> userID (document) -> Subposts (subcollection) -> document[isVisible: true] We have different userIDs which means that each userID …

Paginating data causing unusual behavior?

I am displaying “global posts” on one of my tabs. Currently, there are only 11 posts in the database: In the app Some of the posts are being duplicated, and I have no idea why these …

problems with an array awaiting for a function that reads from firestore

I’m trying to build a method which reads from firestore an array of elements (object): I have a service which retrieves the data from firestore, first it gets an array of document references var data …

React Native Firebase Array Query to do ArrayContains with AND operation

I have group collection. In each group document, I store which users are associated with the group via members array field in firebase. Eg: user1 & user2 are in xyz(id) group and I would like to …

Firestore is super slow to retrieve documents even though an index is created

I am having trouble with Firestore in production. There is a collection I am trying to query and it has about 200-300 documents. It’s a simple query being done through a Cloud Function. I’ve setup a …

How can I display all data from Firestore documents into an html table

I am designing a web page that will obtain data from my firestore collection and display each document with its corresponding fields Here is the code:

Firestore FieldValue.increment()

I’m trying to use firebase.firestore.FieldValue.increment(), but FieldValue.increment() method is not available. I have attached an image contain available methods for firestore. This is my import: …