This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Cloud Functions for Firebase SDK to create Cloud Functions and set up triggers. | |
const functions = require('firebase-functions'); | |
// Cloud Firestore: Node.js Client | |
const { Firestore } = require("@google-cloud/firestore"); | |
// The Firebase Admin SDK to access Firestore. | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const db = admin.firestore(); |