Category "google-cloud-firestore"

Firebase Realtime Database: Save costs by choosing short path names?

Firebase RTDB costs are, in contrast to Firestore, calculated by download size (and not by operation count). When you get data, like in this pseudo code databas

Firestore SDK - Where does onSnapshot event listener/pending writes store data?

As per the answer in the link below: Does Firebase Firestore keep a local copy of snapshot The Firestore SDK keeps a local copy of: All data that you have an a

Is there a way to get an initial event when using firestore/angularfire collectionChanges() on an empty collection

I am using Firestore with AngularFire and am currently trying NgRx for a new feature. As recommended, I am using collectionChanges instead of collectionData, to

Should you use required named parameters when making a data model in flutter?

Is it good practice to require named parameters for data models in flutter when you know that the data should always have a specific field like an id or usernam

Combining Provider with a steam provider not updating

I am working on a technique to determine if some has elevated rights to show an edit icon. I am using Firebase for auth and firestore for back end. My thoughts

How do I reference an image from storage in cloud firestore? React

I'm so confused. I have a form with an input field where you put in a 'title' and an upload file where you upload an 'image'. I created a doc in Cloud Firestore

NullInjectorError: No provider for InjectionToken angularfire2.app.options

I'm trying to insert the form data in cloud Firestore database. Below is my x.component.ts file in which I'm getting error at constructor where I'm writing priv

How does firestore read write and delete calculated? [closed]

I am trying to analyze and optimize the number of Reads and Writes in my cloud Firestore Database. How Does Firestore calculate Reads and Writ

suddenly my app can't fetch data from friestore on my flutter project

suddenly i cant fetch data inside of the firestore database. tried to change google-services.json and still did't fetch data from firestore. and i tried to disc

Update an already existing element in Firebase [duplicate]

I have a Node.js and Firebase project. How can I update a field in an array which already exists? Seems out that Firebase has only two array o

Not able to submit the data to firebase from contact form

import React, { useState } from 'react' import styled from 'styled-components' import Title from '../Components/Title' import { InnerLay

How to check if the fields exist in a document

I have a user collection and I'm trying to search if the first and last name exists and if not, I just want to put a display message that it does not exist. I t

Firebase Serve: Error occurred while parsing your function triggers

Im trying to use firebase serve in order to get my localhost url I can't seem to move past this issue. Here is my index.js const functions = require('fireba

How to change User::Model In Laravel with User Auth in Firebase

Recently I have make Laravel auth with composer require laravel/uiand I can edit/create user with MySQL where as auth users for Firebase . I also can create/

How to change User::Model In Laravel with User Auth in Firebase

Recently I have make Laravel auth with composer require laravel/uiand I can edit/create user with MySQL where as auth users for Firebase . I also can create/

Flutter Firebase offline issues with await

When I try to reorder things in my reorderable list view, I run into a problem. If the user is online, awaiting the document references (as seen in the code) ru

Is a Firestore Query Snaphot in flutter ever null?

In my flutter app I am checking if a document exists based on certain parameters and based on snapshot.hasData build the widget. However I remember reading som

Firebase database collection returns empty array when trying to get all documents

I'm trying to get all documents from my database collection "posts" but I'm getting an empty array instead. The strange thing is that I'm able to get all docume

firebase.firestore.FieldValue.arrayUnion is not a function

I'm trying to update an array in my firestore, i followed the documentation provided by Google (https://firebase.google.com/docs/firestore/manage-data/add-data

Flutter: How to show a message if snapshot has no data

I have a simple problem in flutter but I cant quite figure out how to solve it. So here it is. I'm trying to show a message in my app if the snapshot that I'm c