I’ve been working on a simple card catalog project that takes input from a form and displays it on a card. On each card is the option to remove the card completely, or check/uncheck a box. In order to do this, I need to access the object in the firebase real-time database. Each object is created by a .push() and
Tag: firebase
TypeError: comments.map is not a function ReactJs instagram clone
Im a very beginner in ReactJs and i’m working on an instagram clone where i found this error and can’t fix it at the moment after a lot of searches in stackoverflow and google as well. the ERROR: TypeError: comments.map is not a function Here’s all the code: Answer You are setting a string to your array comments replace this
Firebase fuction returning “Response is not valid JSON object.”
I am trying to send emails from a firebase function that I call from my vue app. My firebase function looks like: I removed the user and pass values here. They have the correct value in my code. The vue method I use to call this function looks like: When this function is called I get the following error in
How to use Firebase Environment Variables in Nuxt Config
I am trying to separate Firebase Creds from my Nuxt Config file. But it is saying NuxtServerError Your API key is invalid, please check you have copied it correctly. It works fine when I use my creds directly into my nuxt config (without environment variables). I am using @nuxtjs/firebase module and this is my config: firebase ssr/universal auth documentation I
Trying to pass variable in fieldname when storing field to firestore
So basically I am trying to make the field name in this loop be EmailBody1, EmailBody2, etc. but I have tried a few different ways like making the field name itself a variable or doing EmailBody[z] or EmailBody{z} but nothing I try seems to be working and I cannot find much info online on how to do this. Any help
Store multiple parameters from different Intents
I have an issue saving multiple parameters from different intents in dialogflow firebase fullfillment. I’ve tried declaring a global variable to store the data there but to no avail . here is what I have so far. I would like to save the parameters from multiple intents to a firebase db Answer You can use context to save/use data across
uploading and downloading storage images in firebase with VueJs
im building this simple application using Vue/vuex and firebase where i want to facilitate users upload images and once the app gets updated those images get reached from firebase storage , modifying the current database with the new uploaded image Here is my code: the images get push to the firebase storaged but once i try to modify the database
How to push data as an array of an index to firebase?
I have an keys and want to push it to a specific item in my DB and i use .push() method when I add an item to firebase but it does not work as what I need it generates a new key and inside it add index what i got What I need Code SOLVED By JS :”D i make
Firebase Firestore query an array of more than 10 elements
[ I am trying to query the post-collection with the user settings but the settings is an array of more than 10 elements and nothing is returned. I know the documents did mention the limit of 10 elements, does anyone know a workaround? Answer The workaround is to perform a query for each item in mySettings individually, and merge the
httpsCallable is not a function when calling a Firebase function
I’m trying to implement a role-based authentication using Firebase auth and Firebase functions. Right now I have a registration form that is working as supposed and now I’m trying to add a form that you submit an email that calls the Firebase function that will attach a custom claim to a user. I already added my function to Firebase via