I can’t really seem to wrap my head around how this is done. Don’t think the documentation is explaining it very well, or maybe I’m just not getting it 🙂 What I’m trying to do is have a list that start out by showing X items. Then with a click of a button load the next X items in the
Tag: firebase
Firebase get doc ID that is nested several branches up
I am trying to search for all documents that contain a field, this field is contained in many documents. It’s a UID for users. I am trying to find all documents which contain a certain UID. Given the following struct: projects > aa (or bb or cc etc many here) > projectTickets > someDocID (which contains the field). So, I
Using async/await inside firebase cloud functions
When performing asynchronous tasks inside a firebase cloud function do I need to await for every task like the example below: or can I just fire these asynchronous calls? given that I don’t need to return anything based on the data received from these tasks to the client like in the other example below: Answer Yes, you need to wait
The best way to query by location in firestore
I am using Firebase 8.10.0 with Vue js 2.6.14 I am trying to query in Firestore about the documents that are less than 3 km away from my location And discovered that I could not do this query in firestore, I was frankly disappointed Then after watching a video by Frank van Puffelen on YouTube “Querying Firebase and Firestore”1 I
How do I add files from form to Firebase database? Vue js + Vuetify + Firebase
This is my first time using both Vuetify and Firebase. Following a tutorial, I was trying to add some data to my db in firebase (not images). After installing firebase in my project with npm, I’ve set it up in a separate js file like this: In the vue.js file where I have the form for the new object with
Some phone numbers do not receive otp sms message with Firebase phone auth
I am experiencing unpredictable behaviour when authenticating users with firebase phone Auth for web, with the javascript modular web api. These are my dependencies: “@firebase/auth”: “^0.19.11”, “firebase”: “^9.6.8”, I have tested approximately 20 real phone numbers and some test numbers and for most of the time it works fine. But for some it fails to send the OTP code, without
Firestore GET all Boolean TRUE then append FALSE values
I need a request/ request flow that retrieves all the documents where the boolean is true and then gets all that is false. Is there a firestore query I can make that does this? An orderBy? Currently, I have an InfiniteScroll and I am struggling for the display to switch between getting true values to getting false values. It seems
Cannot destructure property ‘chat’ of ‘_ref’ as it is undefined (firebase & react)
I have this code that runs to fetch data from a firebase collection: Basically I am fetching all the docs of collection ‘chatLists’ and seeing if an array called “users” which has two users includes the current users name who’s using the app, if they do, I return them all and all the filtered docs get inputed inside the chattingLists
What is the best way to reduce firestore document reads in chat app on page load?
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
Firebase Functions Finished with status: error
I am writing my first Firebase Function that is supposed to make a collection with a document inside (in Firestore) when a new user registers. The only logs I am getting are the following: Function execution started and Function execution took 194 ms. Finished with status: error. The versions of the dependencies: This is my code: When I tried outputting