All Questions
Tagged with google-cloud-firestore javascript
8,393
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 ...
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((...
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 ...
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 ...
-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 ...
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) {
...
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 ...
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 ...
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 ...
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) ...
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 ...
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'...
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 ...
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 ...
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 ...