Skip to main content
100%

firestore get multiple docs from the same collection

✓ Published0🌍 Public
Aandresmijares
Last edited Dec 29, 2019
Created on Aug 9, 2019

This example shows how to retrieve multiple documents from the same Firestore collection using the Cloud Firestore SDK. The code demonstrates batch-fetching documents by their IDs, likely to aggregate data for visualization. It uses Firebase’s `firestore` API, specifically `getDocs` or `doc().get()` methods, to asynchronously query and handle each document snapshot. The gist relies on a configuration file (`cloudSettings`) and a settings sync extension, but the core logic focuses on Firestore’s promise-based data retrieval, making it a practical reference for loading multiple records before rendering charts or graphs.

AI-generated description

Similar vizzes