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.

0
votes
1answer
15 views

Using subcollection from a query returned

I wanted to know if it's possible to refer a subcollection, once a document is queried? I understand that .get() returns a promise and we write a function on it to get the document. But is it possible ...
0
votes
1answer
9 views

undefined is not an object (evaluating ' _firebase.firebase.firestore

i want to fetch all data from firestore and show on a list export const fetchAds = () => { return dispatch => { firebase .firestore() .collection("ads") .get() .then(ads => { ...
0
votes
1answer
17 views

How to iterate though a database using key value in firebase

I need to make a function that runs though each key (teamName) at the start of the program and displays the name of the key. Current i have this: exports.runThoughEverything = functions.database ....
1
vote
1answer
17 views

Firestore: Is there a function that would be related to showing a loading GIF?

I use get and addSnapshotListener to read data from my Firestore database. I know I can handle complete/success and failure events. But I didn't find the "currently retrieving data" event which I'd ...
1
vote
1answer
24 views

How to read collections seperately from firestore [on hold]

I wrote some code to read the collections and write to the logcat but I want to read them separately and add to a string to use them after. I have attributes as name, cityLONG, cityLAT, ...
0
votes
0answers
14 views

Export database(having nested documents) from cloud firestore to Bigquery using command

I am trying to export cloud firestore data(have 2 collections) into bigquery to do sql operations. Exported cloud firestore to cloud storage using following: https://cloud.google.com/firestore/docs/...
1
vote
1answer
28 views

how can I redirect to another html file after being able to store data in firestore?

I've first made my web store data on firebase real time database and now I changed it to firestore but now I'm not quite sure how can I redirect after data has been posted to firestore I ...
0
votes
0answers
16 views

How do you refresh html after updating algolia data?

I am currently using Firestore to store user data and am mirroring it in Algolia for search functionality. I have the following HTML code displaying all the data in my Algolia index: <ais-...
0
votes
0answers
21 views

How to properly import Firestore with TypeScript and Node?

I'm building an Angular web app, and I was importing like this: import * as firebase from 'firebase'; db = firebase.firestore(); But lately I keep getting this error: It looks like you're using the ...
1
vote
0answers
19 views

What is the recommended way to track document changes in firestore?

Let's say I have a employees collection where I have one document per employee and I want to keep record of all changes that were made to a single employee doc. I was thinking of the following ...
0
votes
1answer
14 views

Scheduling a job to run every 2 seconds in GCP Cloud Scheduler

My application is hosted in firebase. It is an angular application with a firestore database. I currently have a scenario where I need to check if something has expired and then act upon it. For this ...
0
votes
0answers
10 views

How retrieve data from firestore collections by filtering data

I'm engaging with an angular project with google cloud firestore. I want to retrieve data from firebase by consider the attribute of a sub collection. You can see in follow my database. I can ...
-1
votes
1answer
14 views

Is Firebase's new Firestore DB more expensive for an e-commerce android app?

I'm stuck between Firebase Real Time database and Firestore for my e-commerce app. I want to know which one is cheaper. I know there will be alot of reads in an e-commerce app, does this make ...
0
votes
0answers
13 views

How to get Firestore fields and update local variables for widgets

I can't get Firestore to look up items with a document ID and obtain the fields from those documents to update my local variables. I am attempting to use QR codes for a library checkout system ...
0
votes
0answers
14 views

Is it possible to update Cloud Firestore from the Realtime Database using cloud functions?

I am using an esp8266 nodemcu to update my realtime database but my web app is built around Cloud Firestore. From what I have researched online it's not currently possible to update Cloud Firestore ...
0
votes
0answers
11 views

Static Final Firestore and CollectionReference

I'm using Flutter and created a "util class" (abstract) for Firebase, something like this: abstract class FirebaseUtil { static final Firestore _firebaseRef = Firestore.instance; static ...
0
votes
0answers
35 views

Choice between a hierarchical sub-collection and two collections

In a traditional JSON architecture, a chat room might be organised as follows: { "chatrooms" : { "room1" : { "room_owner" : "andy_cap", "room_name" : "...
0
votes
0answers
18 views

Stuck creating a delete button on table from firestore

I'm creating an admin page and I'm pulling a table from Firebase using the react plugin Firestorter. Pulling the table is no problem, generating the table no problem, however I'm struggling to create ...
2
votes
0answers
40 views

How to move a subcollection on CloudFirestore

We are planning to implement a virtual filesystem using Google Firestore. The idea of subcollections is nice because it allows us to model our data in terms of a folder hierarchy, like so: /folders/...
0
votes
0answers
18 views

Failed to update ssl context

I'm testing out the firestore setting up tutorial, but I'm hitting this wall that I just don't seems to find any solution to it. can anyone help? I'm just following the basic setting up code, but am ...
1
vote
2answers
66 views

foreach loop array promise not being returned

I want to access a subcollection called 'followers' from a given id under the 'mobile_user', this contains the id's of the followers. I want to loop through each of the id's in the followers ...
0
votes
1answer
30 views

Update document with new userId after user authenticated for the second time

I have the following use case that is working as expected: new user arrives on website user is given an user.uid from anonymous sign in from firebase user creates a document having as userId ...
0
votes
1answer
15 views

What's the max number of documents I should be fetching from a given Firestore query?

I'm working with a real time chat app that can have hundreds of users in the same chat at the same time. My question is in regards to fetching the users' profiles from Firestore, and if there's a ...
0
votes
0answers
10 views

Searching using a sub-string of an element in an array Firebase Firestore [duplicate]

I have an array of elements in my firebase firestore and i am looking for a similar method to startsWith() in Real time database so i can use it to query my data in my array. So far i have come up ...
0
votes
0answers
24 views

Android Graph using data from Firestore

I have some data stored in Firestore and I would like to retrieve this data and display it in a graph, I have been using Android Graph View for this but it will not work, I have attached an image of ...
0
votes
0answers
29 views

FirebaseUI: Reading data from a RecyclerView-list and send it to a (Detail-)Activity to be updated

I am creating an app that stores data on books and has two inputs, bookName and bookInfo. I am attempting to update the information from within my App, I have currently created a display/layout ...
0
votes
0answers
15 views

webRTC remote stream not showing up, but the loader starts loading when remote stream is received and printed in console [on hold]

i am getting remote media stream object but it is not showing up the video, whereas upon receiving MediStream object the loader in video tag starts laoding.enter image description here
0
votes
0answers
22 views

Retrieve multiple documents with exact ids from Firebase [duplicate]

I didn't find any way to build a Firestore query that will retrieve multiple documents by exact ids, but not all documents from a collection. Also it must be done without looping on these ids, because ...
0
votes
1answer
25 views

How to sort data in Firestore according to a property?

I have a database full with cars. The JSON format is this: docId: { "city": "Amsterdam" ... other properties } The docId is a key generated by the add function. I query the ...
0
votes
0answers
22 views

Read Firestore, java.lang.NullPointerException [duplicate]

I want to read data from my firestore collection but throws some error, I generated the gode from docs.firebase. public void readFirestore() { db.collection("campaigns") .get() ...
0
votes
0answers
14 views

Passing a query to FirestoreRecyclerAdapter with sub set of documents from a collection [duplicate]

I want pass a query (as FirestoreRecyclerOptions) to my RecyclerView adapter that extends FirestoreRecyclerAdapter, so that the changes to the document will be automatically updated in the recycler ...
0
votes
0answers
10 views

Firebase/Firestore and idempotent cloud functions

I'm tinkering with Firebase and I'm wondering about a structural issue. My task is to make an app displaying maybe 10 records from the Firestore based on some business logic (i.e. lottery draw). As I ...
0
votes
0answers
13 views

Get only several data using realtime update firestore

Get only several data at first load using listener for realtime update in firestore. When i using limit (example: 15 data), after those data the listener won't get another data for realtime update. ...
1
vote
1answer
18 views

Creating a database when using firestore in datastore mode via gcloud?

Is there any way to create a database when using firestore in datastore mode via gcloud(command line) without using the UI https://cloud.google.com/datastore/docs/quickstart as per the gcloud doc it ...
0
votes
0answers
14 views

How to fix firestore reading/writing data continuously even when no write/read operations have been invoked

I am using bloc pattern as described in https://github.com/boeledi/blocs for my application. In the application, I am basically fetching and writing data to and from firestore. Recently I noticed that ...
0
votes
1answer
25 views

How to define specific .env file to Firebase Deploy using Firestore

So basically I want to separate my development Firestore Database from my deployment one. I have create 2 Firebase Projects: myapp-dev myapp-prod I have also created 2 .env files: .env.development ...
1
vote
0answers
42 views

How to set FirebaseClient Url?

I am new with firebase, I am trying to set firebaseClient URL for my project that exists in the attached picture, what I should put instead of xxxxx I am using cloud firestore FirebaseClient ...
1
vote
1answer
19 views

Paginate with Firestore

I want to paginate my query with Firestore because I have a very large collection (more than 20k documents growing). By pagination I mean displaying an array of numbers to my user, if he clicks on one,...
0
votes
1answer
11 views

Omit fields when performing Firebase query

Is it possible to omit particular fields when performing a Firebase query? The following query: getReferredUsers(referralId) { this.logger.debug(`Getting referred users by referral id ${...
1
vote
1answer
32 views

Fire store in python filling fields with random data

I have a question about python and firestore, I have conected python to fire store and I can add data however when I try to fill in a field in my database using a Varible all I get in the firebase ...
0
votes
0answers
15 views

How to get an Array of documents from Cloud Firestore in Android Studio [duplicate]

I'm trying to create an app with 2 listViews that display a list of tournaments and a list of players. I would like to put all the documentIds in an array of Strings. How can I do that? I'm currently ...
1
vote
1answer
18 views

Get data from Firebase in Vue.js component

I'm starting my first serious app with Vue.js and I have an issue gathering data from Firabase. The idea here is simply to get data linked to an user ID. My first though was to store that in a ...
0
votes
1answer
30 views

How to set up cloud firestore database to match the rules below?

I am having trouble testing in the cloud firestore simulator. I cant get "write" access when I have the following rules. Should my collection be "users" and my documenent under that be named with ...
-1
votes
0answers
26 views

Firestore how should i structure my database for a chat app

I am in the process of migrating my database over from Firebase Realtime Database to Cloud Firestore so I'm a little new to firestore. I have a feature in my app that allows users to post images and ...
0
votes
1answer
15 views

Cloud Firestore Notifications not receiving when app is running android

I have a cloud Firestore function that send notification to users. [ANDROID] It is working great, but I'am receiving the notifications only when app is in backround (pause or killed). Here is a ...
0
votes
1answer
30 views

Firebase Firestore + Cloud Function server side verify in-app-purchase receipt(Swift + NodeJS)

Firebase Firestore + cloud function server side verify receipt(in-app-purchase), end result: status 21002 which means: The data in the receipt property was malformed or missing. step1) I store in-app-...
0
votes
0answers
21 views
+50

How to store a collection path for a model?

I'm building models for my app in Dart/Flutter. Here's how a model looks like: abstract class Model { /// A unique identifier of the model. /// Gets generated by Firestore. final String id; ...
0
votes
1answer
35 views

How to read a Firestore document?

I'm new to Android development ... ;-) I need to know how to read a specific document I saved to Firestore, without having to copy the "documentPath" manually from the Cloud Firestore Console! How ...
0
votes
2answers
44 views

*ngIf only if it matches a value in an array in firestore

I'm working in Firestore, I try to show an image only if the uid of the user matches a value of a Array. Can someone give me an idea of how to do it? So far I have been able to do it but with a ...
0
votes
0answers
24 views

Error: Received unknown parameter: business_type - Node Stripe Connect

So I am trying to create a Stripe Connect account using a Firestore trigger function (onUpdate), but I keep getting the error: Error: Received unknown parameter: business_type in my Firebase Function ...

http://mssss.yulina-kosm.ru