Skip to main content
100%

Gist dedcbff0022b4df5469af073020e4272

✓ Published0🌍 Public
Aandresmijares
Last edited Mar 11, 2019
Created on Mar 11, 2019

This example demonstrates a Firebase Cloud Function that retrieves data from a Firestore collection named `my_nice_collection`. It initializes the Firebase Admin SDK using a service account key and configures Firestore with timestamp settings. The function uses the `firebase.collection().get()` API to fetch documents, then processes the result in a promise chain, leaving room for custom data manipulation. The code highlights how serverless functions can integrate with Firestore for backend data operations.

AI-generated description

Similar vizzes