Skip to content Skip to sidebar Skip to footer
Showing posts with the label Google Cloud Firestore

Query A Reference Field In Firestore Document

I am trying to write a function that will, after data in a document (within a Firestore 'artist… Read more Query A Reference Field In Firestore Document

How To Avoid Nesting Promises In If Statement

I know we should not nesting promises in functions and all my functions are without any nesting at … Read more How To Avoid Nesting Promises In If Statement

Firebase Return Onsnapshot Promise

I'm using firebase/firestore and I'm looking a way to return promise of snapshot. onlineUse… Read more Firebase Return Onsnapshot Promise

How To Get Fields In A Firestore Document?

I am working on some Cloud functions that works with Firestore. I am trying to get a list of fields… Read more How To Get Fields In A Firestore Document?

Database (firestore) Call Is Only Taking The First Value

I want to make a call the database (firestore) to return the data of the products in real time that… Read more Database (firestore) Call Is Only Taking The First Value

Firestore -- Get Only The Changed Documents In A Large Synced Collection

I've read all of the questions below, and cannot find anything in the docs to describe how to s… Read more Firestore -- Get Only The Changed Documents In A Large Synced Collection

Firestore - Getting Data From A Reference Like 'collectionname/{id}' And Iterating Over The Resulting List

I'm trying to get all data from 'anunturi_postate' reference list. Variable 'post_d… Read more Firestore - Getting Data From A Reference Like 'collectionname/{id}' And Iterating Over The Resulting List

How To Filter Firestore Collection Data Using Function (for Location Distance Filtering)

Would like to know how to filter a Firestore collection of docs using a function where some of the … Read more How To Filter Firestore Collection Data Using Function (for Location Distance Filtering)

Generate Firestore Document's Doc Id Based On Users' Uids

In my chat app, I have private chat between the two users. I intend to set the chat document's … Read more Generate Firestore Document's Doc Id Based On Users' Uids

How To Update Fields In Firestore Map

Don't know how to go about adding new fields into a map in Firestore using a variable rather th… Read more How To Update Fields In Firestore Map

Mapping Data From Two Firestore Collections With Js

I have two collections namely:CURRENCY-PAIR and Alerts. The CURRENCY-PAIR collection contains the f… Read more Mapping Data From Two Firestore Collections With Js

Firebase: Transaction Read And Update Multiple Documents

With this code I can read and update single document in the transaction. // Update likes in post va… Read more Firebase: Transaction Read And Update Multiple Documents

How To Query Data From Firestore With Dynamic Input

I have a problem with my code and I don't know how to solve it in the correct way. I am trying … Read more How To Query Data From Firestore With Dynamic Input

Filter A Collection Group Query In Firestore

I have a database structure as follows (simplified for purposes of this question): Collection: item… Read more Filter A Collection Group Query In Firestore

Convert Recursively And Asynchronous Documentreference In An Js Object

I have this type of object: { 'www.some-domain.com': { 'key1': ['va… Read more Convert Recursively And Asynchronous Documentreference In An Js Object

Firestore.where() On Two Fields At Once

I have a firestore collection of the following documents: [ { start: { geohash: 'u3… Read more Firestore.where() On Two Fields At Once

How To Update Firestore Collection Based On Other Docs?

I am building an order form that limits how many items you can order based on the stock of the item… Read more How To Update Firestore Collection Based On Other Docs?

Getting Error: `every Document Read In A Transaction Must Also Be Written` In Firebase

guys! i am developing an app similar to https://airtasker.com where users outsource tasks. the task… Read more Getting Error: `every Document Read In A Transaction Must Also Be Written` In Firebase

How To Get A Document From A Collection Based On A Particular Field In That Document

const docRef = firestore.collection('orders').document('') I need to get the docum… Read more How To Get A Document From A Collection Based On A Particular Field In That Document

Problem Detaching Listener From Firestore Nested / Sub-collection

My scenario is a chat app with the following setup in Firestore channels (collection) id (doc) … Read more Problem Detaching Listener From Firestore Nested / Sub-collection