Skip to main content

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
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 ...
Fats's user avatar
  • 1
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 ...
cubesoft's user avatar
  • 3,508
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 ...
Matías Ferechian's user avatar
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) ...
genesis's user avatar
  • 23
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'; ...
pax's user avatar
  • 1,795
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 ...
M.F. Services's user avatar
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 ...
Victor's user avatar
  • 285
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/...
iDecode's user avatar
  • 27.3k
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 ...
Remy Bartolotta's user avatar
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 ...
LAZREQ's user avatar
  • 1
0 votes
0 answers
11 views

connect flutter android studio to firestore [closed]

how to connect firestore and flutter app in android studio to make the app more interactive I have a login page with 3 field to select as Jilla ,Upashabha and password. the jilla and upasabha as to be ...
AARABHI PARAMESWARAN's user avatar
1 vote
0 answers
23 views

Firestore rules to not allow additional queries

getDocs(query(orderBy('createdAt', 'desc'))) with rules, i can enforce a query allow list: if request.query.orderBy.createdAt == "DESC" How do i make it so users cannot apply query to any ...
Ibrahim Ali's user avatar
  • 2,427
0 votes
1 answer
29 views

Lazy loading is returning empty array

import React, { useState, useRef, useEffect } from "react"; import { collection, query, where, getDocs, startAfter, limit, startAt, } from "firebase/firestore"; ...
Vishesh Gupta's user avatar
0 votes
0 answers
19 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
18 views

Distinguishing Firestore Snapshot Listener 'REMOVE' Event Reasons in Query

I have a snapshot listener for a query like this: firestore .collection("...") .whereEqualTo("available", true) .orderBy("sort", Query.Direction.DESCENDING) ...
Dark White's user avatar
0 votes
0 answers
20 views

can't assign docs of nested query firebase collection to a List<class>

I'm have been trying to get all data of collection a and subcollection b and insert them into a List of model to use that list later to show data in a ListView builder , problems are: 1- I can't get ...
fyry J4's user avatar
0 votes
0 answers
11 views

Firebase read permissions breaking write permissions

I'm trying to write storage rules in firebase. There are 3 levels of user in my app- admin, agent, and client. A client should be able to write to their own 'Request' Admins can read everything Agents ...
Adam James's user avatar
-3 votes
0 answers
15 views

How to differentiate when to use relational databases and real time databases? [closed]

I want to implement a database for a software development project I am working on. I want to figure out whether I should use a relational database and a real time database. I tried using MySQL and I ...
Shanaya Hassen's user avatar
-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": "...&...
Aakash Kothari's user avatar
1 vote
0 answers
31 views

How can I update/create multiple documents in a collection in firebase?

I'm trying to use a default collection in firebase that a user can overwrite with their own values and save elsewhere. I have a default collection from which the initial values will be drawn, and have ...
Apersu's user avatar
  • 11
0 votes
1 answer
22 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,175
0 votes
0 answers
33 views

Multiple "whereField" clauses not working as expected in SwiftUI and Firestore. No error thrown, the data returned is incorrect [closed]

Trying to query a firestore collection as below. Data returned is inaccurate. db.collection("myCollection") .whereField("date", isGreaterThanOrEqualTo: Timestamp(date: ...
Nikki's user avatar
  • 1
0 votes
1 answer
25 views

Android Fetching Data from Firebase Firestore Error

I create an app that is fetching some data from Firebase Firestore and display them on a list. While the app is starting is not fetching the data and this error occurs. W/ConnectionTracker( 4843): ...
Andreas Hadjimamas's user avatar
0 votes
1 answer
53 views

fetch only one data of single document instead of all documents

I'm trying to fetch all data of documents inside the collection but unfortunately the code only fetch data of one single document. const Charities = ({navigation}) => { const [...
Omar Bakoban's user avatar
0 votes
1 answer
19 views

Remove item from Reference List

I have a database „Users“ which contains the List<Doc Reference (users)> „Friendlist“. I am displaying this friendlist with Dynamic Children Querying in a Listview, each viewItem contains a ...
Kalle's user avatar
  • 11
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 ...
Epimetheus14's user avatar
0 votes
1 answer
19 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
0 votes
0 answers
20 views

SwiftUI and FirestoreQuery property wrapper - Pagination?

I'm new to using the property wrapper for FirestoreQuery and I'm confused how to handle pagination. @FirestoreQuery(collectionPath: "users") private var users: [Users] Would this simply ...
Christian's user avatar
  • 356
0 votes
1 answer
60 views

Swift Multidatepicker doesn't recognize dates loaded from Firebase

I have an issue where when dates are loaded from firebase into my MultiDatePicker, the onChange function does not recognize dates that are already in the "selectedDates" array, instead re-...
Joshua Shen's user avatar
0 votes
1 answer
48 views

How to retrieve and fetch data from a document's field on firebasefirestore? [duplicate]

I am trying to fetch data from a document on a Firebase's collection that contains users: As you can see, there is a collection named Users and two users, and now I click on one you get to see the ...
Emmanuel Agyapong's user avatar

15 30 50 per page
1
2 3 4 5
1427