Questions tagged [google-cloud-firestore]
Cloud Firestore is an auto-scaling real-time document database for storing, syncing, and querying data for mobile, web and server development.
google-cloud-firestore
42,813
questions
0
votes
0
answers
22
views
Firebase Listener doesnt work on safari but works on chrome
I am making a time table that users can store locally using Shared Preferences in flutter. When an admin makes an update in firestore, I want the changes to be updated locally as well (in Shared ...
0
votes
0
answers
11
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 ...
1
vote
0
answers
18
views
My Firestore listener in C# is not working
I’m new to using Firestore. According to the official documentation, my code should work correctly, but for some reason, it doesn’t. I can read and write data correctly. Could it be that I’m missing ...
51
votes
5
answers
14k
views
What is the fastest way to write a lot of documents to Firestore?
I need to write a large number of documents to Firestore.
What is the fastest way to do this in Node.js?
0
votes
1
answer
15
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
2
answers
95
views
Firestore query error: Error 9 Failed precondition
I have trouble getting this Firebase Function to work, except in Firebase Emulator.
Here's the error message. It doesn't mention anything about indexes, but I still suspect that incorrect index is to ...
25
votes
2
answers
14k
views
What is the difference between Firebase Storage and Cloud Firestore/Realtime Database?
I have been using Google Firebase's Realtime Database, but want to be able to store more complex user-generated data like images, videos etc. As per the Firebase docs, they provide two other services: ...
0
votes
0
answers
16
views
Firebase rules work fine in emulator, don't work in the Cloud
The following firestore rules set works in my emulator,
but does not work in the Cloud.
The isUserAuthenticated returns false, as if the {userId} didn't evaluate correctly.
rules_version = '2';
...
0
votes
1
answer
25
views
How to generate methods in `PerFieldToJson` using `json_serializable`?
Minimum reproducible code:
// foo.dart
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:cloud_firestore_odm/cloud_firestore_odm.dart';
import 'package:json_annotation/...
0
votes
0
answers
12
views
Next.js 13 and Firestore static blog page gives me this error => TypeError: Cannot read properties of undefined (reading 'title')
I am trying to statically generate individual blog pages blog/[id].js on my Next 13 app with Firestore using getStaticPaths and getStaticProps, but I keep getting this error: TypeError: Cannot read ...
3
votes
2
answers
2k
views
Firestore serverTimestamp() undefined
Problem
I have a callable cloud function set up which writes to Firestore using the Admin SDK (node.js):
const admin = require('firebase-admin');
const functions = require("firebase-functions&...
0
votes
0
answers
15
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
18
views
Why is CORS blocking the GCF request when an ID is used?
I am making calls via the Hubspot API from a Firebase Cloud Functions file. Most of these work without any issues; however, any endpoints that require an ID are blocked by CORS. I've tested these ...
4
votes
2
answers
2k
views
Cloud function is writing NaN to firestore
I created a cloud Function to update a following count every time there is a new follower. However, for whatever reason, NaN gets written to the document instead of an incremented count. What is NaN ...
-2
votes
0
answers
40
views
ValueError: JSON string "{" is not valid json [closed]
I have a serviceAccountKey.json file with the following code
{
"type": "service_account",
"project_id": "...",
"private_key_id": "...&...