I have a chat app that is charging me a large number of reads for each page load, 1 for each message to show. I’m trying to figure out a way to reduce that number and optimize for cost, as refreshing the page a few times costs hundreds of reads. The firestore pricing documentation says For queries other than document
Tag: google-cloud-platform
Use firebase onSnapshot() in for loop?
The below code works for getting my data from firestore. I’m trying to update this to use onSnapshot() instead of of get(). Maybe the core of my confusion is onSnapshot() doesn’t return a promise and I’ve tried just adding the listeners into an array but it seems the data doesn’t get updated. How do I iterate over a for loop
How can I read data from firestore database in a schedule function? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 months ago. The community reviewed whether to reopen this question 2 months ago and left it closed: Original close reason(s) were not resolved Improve this question I’m new to Firebase
Getting `eslint’ – parsing error, while compiling firebase cloud function
Recently I’ve started working on a project based on firebase cloud functions and firestore database. I’m writing a cloud function trigger function which will query a “Collection group”, on a new document being created. Below is the cloud function code file: But while compiling i am being thrown the below error I tried a lot but I am unable to
CORS Policy blocking my API requests in a google cloud platform app engine in a live website
I uploaded my node js server to the google cloud app engine service to be able to make the front end work. I also uploaded the frontend and my website is now live. The node js is running fine and it’s deployed in the app engine in google cloud. my only problem is that whenever I try to make a
Firestore: Get subcollection of document found with where
I am trying to get the documents inside an subcollection which is part of an document found with the .where function Example: RootColl/ Doc A/ SubColl 1 Doc 1 Doc 2 Doc 3 SubColl 2 Docs Doc A/ SubColl 1 Doc 1 Doc 2 Doc 3 SubColl 2 Docs I want to get all the documents under SubColl 1 from