python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do i access date: at {seconds: 1649365178, nanoseconds: 0} firebase firestore in react?
I am having trouble access this in my array. How should my syntax be?
date: at {seconds: 1649365178, nanoseconds: 0}
{entrylist.map((e, index) => {
return <div key={index}>{e.date.seconds...
user18685429
Votes: 0
Answers: 1
Sorting an docs by comparing the docs in a subcollection with the most recent date in firestore
I have a firestore structure like this:
chats > chat docs with unique IDs
Each chat doc contains these values:
id, members and more info on the chat like nicknames etc.
In addition, there is a su...
User123123
Votes: 0
Answers: 0
How to use a Firestore query with realtime data in firebase 9 modular
I want to be able to use Realtime data with a specific query but I cannot find a way to insert the query inside of the Realtime logic ?
import { doc, onSnapshot } from "firebase/firestore";
...
Richardson
Votes: 0
Answers: 1
What is the use of hashcode in Document Snapshot?
I noticed this code in the DocumentSnapshot class of firebase:
@Override
public int hashCode() {
int hash = firestore.hashCode();
hash = hash * 31 + key.hashCode();
hash = hash * 31 + (doc...
Sambhav Khandelwal
Votes: 0
Answers: 1