Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
24 views

How to make a where query on a firebase subcollection?

I'm a bit puzzled by how firestore works. I have been reading the documentation and forums, but it remains unclear. I have a "leads" collection, then a ${admin_id} sub-collection, then a ...
Jonathan Piquard's user avatar
1 vote
1 answer
44 views

How to Switch Between Multiple Firestore Databases in the same firebase app

My Firebase project contains multiple Firestore databases, and I need to switch between these databases in my code. const response = await firestore().collection(collectionId).doc(savedId).get().then((...
Hari Karthikkeyyan's user avatar
0 votes
0 answers
28 views

Function updateDoc() called with invalid data. Unsupported field value: a custom __PRIVATE_ArrayRemoveFieldValueImpl object [closed]

I'm trying to run arrayRemove() and returns with an error: Uncaught (in promise) FirebaseError: Function updateDoc() called with invalid data. Unsupported field value: a custom ...
paehj12's user avatar
0 votes
0 answers
13 views

getDocs(collection(db, "products")) not returning any docs in Remix App Using Firebase and Shopify Hydrogen

Trying to implement a default Firestore DB into my Remix web application that integrates with Shopify Hydrogen, and the getDocs query getDocs(collection(db, "products")) returns a snapshot ...
matrixvivi's user avatar
-2 votes
0 answers
22 views

Unexpected error while following video tutorial [closed]

I'm trying to reproduce the "Build an expense tracker web app with Firebase" case with Youtube videos. Code setting, done. Authentication, done. Cloud storage, done. The issue arise with ...
Augusto Sanchez's user avatar
0 votes
1 answer
34 views

Cloud function works as http, but doesn't work as a scheduled function

I have a daily scheduled function as follows: export const dailyExecutedFunction = async (): Promise<void> => { try { // some other code setRoutineAnalytics(); } catch (error) { ...
Edward Cahyadi's user avatar
0 votes
0 answers
17 views

Failed to load function definition from source: FirebaseError

I using firestore for study functions so when i went run that aplication appear this error, if this important, i use npx "Failed to load function definition from source: FirebaseError: Functions ...
MagicGanza's user avatar
0 votes
0 answers
33 views

Promise is never returned in firestore().collection('Users').add({ name: 'Ada Lovelace', age: 30 })

I'm using React Native with Expo and library @react-native-firebase/firestore. I'm trying to add a document to a collection in Firestore but the promise never returns so nothing is inserted in ...
faguilera85's user avatar
0 votes
0 answers
22 views

Firebase functions onValueCreated database trigger not working

I wrote below trigger exports.onNewGameRequest = onValueCreated( {ref: "/game_requests/{uid}", region: "europe-west1"}, async (event) => { // Grab the current value of what ...
cubesoft's user avatar
  • 3,508
0 votes
1 answer
50 views

Ionic Capacitor and Firebase Firestore

trying to make Firebase Firestore work in Ionic Capacitor on an iOS device for five hours and I'm losing my nerves right now. Hope you can ramp me up here. The setup: Ionic: ionic (Ionic CLI) ...
genesis's user avatar
  • 23
0 votes
0 answers
16 views

Where query on firestore [duplicate]

I have a collection of users, each with a collection called "logs". I have a collectionGroup with all "logs" collections. Each "logs" collection have documents which are ...
Victor's user avatar
  • 285
0 votes
0 answers
22 views

React Native Firestore useEffect Fetch Issue with where Clause and Pagination

I am working on a React Native project that uses Firestore to fetch a list of services. I am trying to fetch services with a price greater than or equal to 70 and implement pagination using Firestore'...
Hristo Ivanov's user avatar
0 votes
1 answer
27 views

How to filter query on a nested object in Firestore

I have nested an object inside my Firestore objects and am trying to filter based on it ..but it returns no object. here is what my nested objects look like : Now in my function whenever I do ...
Ahmed Wagdi's user avatar
  • 4,205
0 votes
2 answers
24 views

How do I get just one singular field out of a Firestore document and add it to a new document?

I am trying to make a chat where at the top of each message it displays the user's name on the top of each document they add when they send each message but I am unable to get the single field without ...
Epimetheus14's user avatar
0 votes
1 answer
23 views

How to I get data from a firestore collection within a document that requires an argument?

I am trying to create and admin chat where the admin can view all the user messages and then reply to them I have been able to add documents to this collection but I am unable to display the messages ...
Epimetheus14's user avatar

15 30 50 per page
1
2 3 4 5
560