import mongoose from "mongoose";


export const connectDb=async()=>{
    try {
        await mongoose.connect(`${process.env.MONGO_URI}`);
        console.log("db connected");
    } catch (error) {
        console.log("failed to connect to db")
        
    }
}