Category "google-cloud-firestore"

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

Error "[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()" is thrown [duplicate]

I have a main file which returns home page and on the home page I am trying to call a new file (test.dart). Now the problem is this test.dart

Firebase Firestore Emulator UI is not showing any data, but data is being returned in app query

I am facing an odd issue with firebase's firestore emulator. When i start the emulator, and check the emulator's firestore UI, it shows that no data exists in t

Parsing JSON in React Native

I am currently using Google Firebase Firestore as a REST API. I feel like I am missing something quite basic as I am having a difficult time displaying data. I

Flutter-Firestore: - Code to retrieve data from firestore then save/use it

I am very new to Dart, and coding in general. I have produced this code after watching tutorials on YouTube. For the most part, I have been able to troubleshoot

Flutter: Update specific index in list (Firestore)

How exactly do you update a specific value in a list based on it's index? For example, in the following list: 0 [ { first_name: name0, last_nam