All Questions
Tagged with google-cloud-functions google-cloud-firestore
3,579 questions
0
votes
0
answers
29
views
Do Firestore Queries save time? [closed]
I'm creating an ecommerce app that has 100+ products. I want to show only 4 featured products on the homescreen.
Now, my question is, whether should I create a separate collection for featured ...
0
votes
1
answer
25
views
Firebase v2 function loses admin rights
I have a firebase functions file that, in v1, worked perfectly. Upgrading to v2, I use:
const functions = require("firebase-functions/v2");
const admin = require("firebase-admin");
...
0
votes
0
answers
49
views
Converting Firebase Timestamp to JS Date with correct timezone
I have some data in Firestore with a Timestamp in my local timezone (Europe/Copenhagen) and because we are in summer that is UTC+2 right now. I also have some ints in the Firestore collection to save ...
0
votes
1
answer
33
views
unable to get document data of onDocumentCreated
i'm trying to convert my firebase cloud functions from 1st Gen to 2nd Gen and i can't get the data out of the snapshot typically referred to as event. There must be a simple fix that i'm missing.
In ...
0
votes
1
answer
43
views
What does a triggering event for testing a (1st gen) Firestore triggered Cloud Function look like?
I have a (1st gen) Cloud (Run) Function that is triggered by a document being created in Firestore. I want to test this function with the TESTING functionality that is built into the Google Cloud ...
0
votes
1
answer
45
views
How to use Expression in Firebase Trigger Functions
I want to create only one function to be triggered by some of my Collections, it looks like it's possible with the use of CEL braced expression or REGEX, however I failed to figure out the correct ...
1
vote
1
answer
46
views
Do firebase functions triggered when a document is created scale to thousands of documents being added to firestore simultaneously?
I have a Firestore database that I'll be adding ~10k documents to every hour. I need to run a function on each of those documents that makes an API call, gets some information, and updates said ...
1
vote
0
answers
29
views
PERMISSION_DENIED: Missing or insufficient permissions - Firebase function
I have a Firebase function called onUserStatusChanged that mirrors real-time data from the Firebase Realtime Database to Firestore like following :
(By the way, I copied this code from Google)
const ...
1
vote
0
answers
23
views
Firebase functions not changing firestore database
I'm new to firebase functions and recently I was tasked with adding two new functions. One needs to run daily at midnight and the other runs whenever a budget for an order in a firebase collection (...
0
votes
0
answers
28
views
How to Implement Scalable Custom Scheduled Push Notifications in Flutter Using FCM Without WorkManager?
I’m developing a Flutter app where users can set custom schedules for receiving push notifications. Each user can choose their own frequency, such as:
10 notifications per day
5 notifications per day
...
0
votes
0
answers
18
views
Firestore - Querying a collection based on current time
I would like to retrieve a list of events stored in a Firestore collection in Python. I want to retrieve only future events (but I also want to keep past events up to 2 hours).
I also want to listen ...
0
votes
0
answers
38
views
Firebase Cloud Function (Firestore database) - Update millions documents in less than the hour limit [duplicate]
In our project, we need to update one field in the users collection in millions of documents once a day.
We use the cloud function (Node.js) for this, recently we update 2 million documents in a time ...
0
votes
0
answers
39
views
How to properly pass authentication to cloud functions when calling from chrome extension
This is cloud function I'm using to access Firestore:
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp();
exports....
0
votes
1
answer
64
views
Firebase Optimistic Locking Duplicate Processing
I have two Firebase functions that run hourly and process the same list of users. They share a batch document(this.batchId: MM-dd-yyyy-HH so it's unique for each hour) and use transactions to ...
0
votes
1
answer
54
views
Match multiple collections in eventarc within the same firestore document path pattern
Based on this docs is it possible to match two different collections and trigger the same CF 2nd gen on doc creation for users/ and clients/ collections?
I tried different approaches, but no luck:
{...