Category "google-cloud-firestore"

Synchronously iterate through firestore collection

I have a firebase callable function that does some batch processing on documents in a collection. The steps are Copy document to a separate collection, arch

Why is my React component is rendering twice?

I don't know why my React component is rendering twice. So I am pulling a phone number from params and saving it to state so I can search through Firestore. Eve

Why is data retrieved from Firestore returning empty array when there are subcollections present?

I am trying to retrieve data from my the my firestore database using angularfire2. This is what my current database looks like. I have a users collection that c

Swift Singleton Pattern in Conjunction With Cloud Firestore

I have been looking into cloud firestore as my backend infrastructure. Ive been using realtime database but feel the switch is vital. I have looked at the fireb

How to get value of some field in firebase firestore android?

Like upper question, i want to get value of some field in firebase firestore instead of all document with DocumentSnapshot like this in SQL SELECT col_1, col_2

IllegalStateException: Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first

I've been getting this fatal error today after changing some gradle dependences. Even though I tried to revert the gradle dependences back to the original I'm s

Firestore query with inequality filters on multiple fields

I am building a calendar on IOS using Swift, with a Firestore back-end. I am retrieving all the events for each day in a month at one time. Currently I can only

flutter waning schedule binding while using listview builder

import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/material.dart'; import 'package:firebase_core/firebase_core.dart'; import 'pack

Leaderboard ranking with Firebase

I have project that I need to display a leaderboard of the top 20, and if the user not in the leaderboard they will appear in the 21st place with their current

FireStore Query does not return records although there is data

Tried to query DB from Flutter with following snippet await _firestore.collection('products').get().then((docs) => { if (docs.docs.isNotEmpty){

Firestore Delete elements from a nested map kotlin

I have a collection, I want to delete 2 documents from this collection Paradas collection and delete it from the nested map too Nested map like in SQL, when yo

FirebaseError: Function updateDoc() called with invalid data. serverTimestamp() is not currently supported inside arrays

I'm trying to update the document with the new comments array but I'm getting this error when I submit a new comment. In every document, there is an array(comme

Could not reach Cloud Firestore backend. Connection failed 1 times

i'm using a very simple code and fetching data from firestore import firebase from 'firebase/app'; import 'firebase/firestore' const firebaseApp = firebase.ini

How to delete a specific document node on Firestore (Android Studio)

What i'm trying to achieve is user able to select which document they want to delete. After they press delete button on a specific recycle view column, the data

MissingPluginException for Linux desktop app

Just added desktop support to my flutter app, it runs fine in the android emulator, but wont render any element in neither browser nor desktop, just a simple bl

How to save the document id in document field while creating it in Flutter Firebase

I am trying to save the document id in the a new field but if i use 'postId': _firebase.collection('Posts').doc().id, this will generate a new id any suggestio

How to create user collection in firestore after sign in with google?

i am trying to create a user collection in firebase firestore after when user sign in with google. i use these lines of code const signInWithGoogle = async

flutter onClick delete image from firebase storage and firestore

I need on click delete image from firebase storage and firestore I've written this code that does the delete from firestore only. onLongPress: ()async{ await

Firestore to query by an array's field value

I'm trying to run a simple query, where I search for a document that contains a value inside an object array. For instance, look at my database structure: I wa

NextJS: How to correctly add firebase analytics to NextJS app

I have a react/nextjs app and I have firebase.js as follow: import firebase from 'firebase/app' import 'firebase/auth' import 'firebase/analytics' import 'fireb