"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.seedFirestore = void 0;
const firestore_1 = require("firebase-admin/firestore");
const fs_1 = require("fs");
// Function to seed Firestore
const seedFirestore = async () => {
    console.log("testing");
    const db = (0, firestore_1.getFirestore)();
    const rawData = (0, fs_1.readFileSync)("/functions/db_seed/DoctorCategory.json", "utf8");
    const data = JSON.parse(rawData);
    for (const item of data) {
        const docRef = db.collection("DoctorCategory").doc(); // Replace "YourCollectionName" with your desired collection name
        await docRef.set(item);
    }
};
exports.seedFirestore = seedFirestore;
// Invoke the seeding function
// seedFirestore();
//# sourceMappingURL=seed.js.map