"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dbConnect = void 0;
const mongoose = require("mongoose");
const { ServerApiVersion } = require("mongodb");
const dbConnect = () => {
    const DB_URI = process.env.DB_URI;
    mongoose.Promise = global.Promise;
    mongoose.set('strictQuery', false);
    mongoose.connect(DB_URI, {
        serverApi: ServerApiVersion.v1,
        useNewUrlParser: true,
        useUnifiedTopology: true,
    });
};
exports.dbConnect = dbConnect;
