Relative Content

Tag Archive for google-cloud-firestore

Firebase Emulator Suite, exporting non default database

DIRECTORY=”./STORAGE” firebase emulators:start –import $DIRECTORY –export-on-exit $DIRECTORY $@ The above works just fine to export the default database, but that’s not the one I have in use. A custom database is being used instead for development and I’d like to persist all that storage to resume where I last left off. Would this be automated […]

getDocs(collection(db, “products”)) not returning any docs in Remix App Using Firebase and Shopify Hydrogen

Trying to implement a default Firestore DB into my Remix web application that integrates with Shopify Hydrogen, and the getDocs query (getDocs(collection(db, “products”))) returns a snapshot with no documents. I have followed the documentation almost verbatim. I know this is not a connection issue as the reads are going through to Firestore, and I get a querySnapshot with the relevant Firestore information.

Firestore: what are the objective advantages of storing data hierarchically?

Initially I found firestore appealing because it lets you organize your data hierarchically, and this matches more closely how my data behaves in the real world. However while, yes, nominally firestore lets you organize data hierarchically, functionally it is almost the same as storing everything in big flat collections:

Firestore: what are the real advantages of storing data hierarchically?

Initially I found firestore appealing because it lets you organize your data hierarchically, and this matches more closely my intuition on how my data is organized. However while, yes, nominally firestore lets you organize data hierarchically, functionally it is almost the same as storing everything in big flat collections: