All Questions
Tagged with google-cloud-firestore google-cloud-platform
2,230
questions
0
votes
1
answer
30
views
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently?
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently? Is there a way to make this process event-driven rather than using periodic checks? I'm looking for ...
0
votes
2
answers
22
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
17
views
Firebase Cloud Function using Event for document change AttributeError: 'Event' object has no attribute 'after'
I deployed the following Python Firebase cloud function that's supposed to be triggered on change to document from Collection Appointments, then send an FCM accordingly to associated user.
# The Cloud ...
-2
votes
0
answers
15
views
I want to access my Firestore Database of project A, from Project B which is also deployed in same GCP [closed]
not able to access one DB (FIRESTORE) from two projects on same GCP.
I have two projects deployed in Google Cloud Platform project A & project B. Project A has firestore DB. now i want to access (...
0
votes
2
answers
29
views
Firestore alternative for collectionGroups
I have a question about Firestore search, collectiongroups, and something similar like that.
I have 2 main-collections: /users and /hobbies
Every user-doc in users has a subcollection "/hobbies&...
-4
votes
2
answers
47
views
Fatal Error: Call to undefined method Google\Cloud\Firestore\QuerySnapshot::count() [closed]
I want to echo 5000 user's documents from Firerstore to an HTML table using Laravel but am getting an error "call to undefined method Google\Cloud\Firestore\QuerySnapshot::count()". Please ...
0
votes
0
answers
20
views
Cloud Build Variables are not getting imported into my React Application
Bare with me as I'm new to a lot of these concepts and my terminology may not be correct.
I have a React application that I have running in a Google App Engine. I've set up a Cloud Build to ...
0
votes
1
answer
69
views
Kotlin How do I update the throughput when the application is closing? [closed]
I want to update the data in Firebase when the application terminates. How can I do that
I used onDestroy and onPause but they did not do the function I wanted. When I use OnPause, every time the ...
0
votes
3
answers
50
views
@firestore_fn.on_document_created limit on firebase cloud functions(2nd gen)
I am a beginner. and I am sorry that my English is not good.
I am programming using firestore, firebase cloud functions(2nd gen).
I am asking about @firestore_fn.on_document_created limit of firebase ...
0
votes
1
answer
33
views
Firebase Firestore: Accessing Never-Retrieved Data Offline
I'm using Firebase Firestore v.10 in my web app and want to improve offline functionality. While I understand Firestore allows accessing cached documents offline, is it possible to fetch data (never ...
-1
votes
1
answer
37
views
Restricting Firestore access by service account
I have a node app that uses the firebase sdk to read/write to a firestore db.
"dependencies": {
"firebase": "^9.12.1",
"firebase-admin": "^10.0.2&...
0
votes
1
answer
47
views
Fetch each user data from Firestore failed
I'm trying to fetch each user data from firestore based on the user login, between I'm using React Native and firebase.
Fetch code
const UserInbox = () => {
const auth = getAuth(app)
const ...
1
vote
1
answer
31
views
How to listen to button triggers using Firebase [closed]
I have two clients and I'm looking for a way to send a button click on one client and listen to the other client.
It is possible to detect data changes using Cloud Firestore's onSnapshot(). However, ...
0
votes
1
answer
39
views
Firestore add method throws error "Error: 13 INTERNAL: An internal error occurred."
My Cloud Function is logging out this error while it is being called.
Error: 13 INTERNAL: An internal error occurred.
at callErrorFromStatus (/workspace/node_modules/google-gax/node_modules/@grpc/...
0
votes
1
answer
30
views
Cloud function triggered by Firestore event
I have deployed cloud function (Gen 2) that is supposed to be triggered each time a new document in "messages" collection is created in my Firestore DB. Than the "test" data field ...